Skip to content

[monodroid] remove _monodroid_get_identity_hash_code - #9622

Merged
jonpryor merged 2 commits into
mainfrom
dev/peppers/_monodroid_get_identity_hash_code
Dec 17, 2024
Merged

[monodroid] remove _monodroid_get_identity_hash_code#9622
jonpryor merged 2 commits into
mainfrom
dev/peppers/_monodroid_get_identity_hash_code

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

In a NativeAOT context, we don't have libmonodroid.soat all. This makes methods like JNIEnv.GetIdentityHashCode() non-functional, as it p/invokes into _monodroid_get_identity_hash_code.

Remove _monodroid_get_identity_hash_code, in favor of:

return JniEnvironment.References.GetIdentityHashCode (new JniObjectReference (v));

Which should have negligible performance impact and works without libmonodroid.so.

In a NativeAOT context, we don't have `libmonodroid.so` *at all*. This
makes methods like `JNIEnv.GetIdentityHashCode()` non-functional, as
it p/invokes into `_monodroid_get_identity_hash_code`.
Remove `_monodroid_get_identity_hash_code`, in favor of:
return JniEnvironment.References.GetIdentityHashCode (new JniObjectReference (v));
Which should have negligible performance impact and works without
`libmonodroid.so`.
@jonathanpeppers

Copy link
Copy Markdown
MemberAuthor

/azp run

@dotnetdotnet deleted a comment from azure-pipelinesBotDec 16, 2024
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor
jonpryor merged commit d1a42a7 into mainDec 17, 2024
@jonpryor
jonpryor deleted the dev/peppers/_monodroid_get_identity_hash_code branch December 17, 2024 17:02
grendello added a commit that referenced this pull request Jan 7, 2025
* main: (25 commits)
[CI] Break "Linux Tests" into 2 parallel jobs. (#9642)
Fix `WorkloadDependencies.proj` build. (#9648)
[CI] Set "WearOS Tests" parallelization to 2 agents. (#9639)
[CI] Break "Package Tests" into 2 parallel jobs. (#9638)
Bump to DevDiv/android-platform-support@3b4e16f1 (#9632)
[NativeAOT] improve build logic, part 2 (#9631)
Bump to dotnet/java-interop@2c06b3c2 (#9633)
[NativeAOT] improve build logic, part 1 (#9614)
[build] Generate `WorkloadDependencies.json` (#9613)
[monodroid] remove `monodroid_get_log_categories()` (#9625)
[monodroid] remove `_monodroid_get_identity_hash_code` (#9622)
Bump to dotnet/java-interop@f800ea52 (#9607)
[XABT] Break BuildApk into individual tasks for each content type. (#9612)
[Mono.Android] Bind Android API-Baklava DP1 (#9594)
[Xamarin.Android.Build.Tasks] Extract `BuildArchive` from `BuildApk` (#9556)
[NativeAOT] MSBuild-related logic to get projects to build (#9583)
[build] remove remnants of `OpenTK-1.0.dll` (#9610)
[build] remove `Xamarin.Android.CSharp.targets` (#9609)
[build] runtime "flavors" part 2 (#9598)
Bump com.android.tools.build:manifest-merger to 31.7.3 (#9600)
...
grendello added a commit that referenced this pull request Jan 7, 2025
* dev/grendel/use-libc++: (25 commits)
[CI] Break "Linux Tests" into 2 parallel jobs. (#9642)
Fix `WorkloadDependencies.proj` build. (#9648)
[CI] Set "WearOS Tests" parallelization to 2 agents. (#9639)
[CI] Break "Package Tests" into 2 parallel jobs. (#9638)
Bump to DevDiv/android-platform-support@3b4e16f1 (#9632)
[NativeAOT] improve build logic, part 2 (#9631)
Bump to dotnet/java-interop@2c06b3c2 (#9633)
[NativeAOT] improve build logic, part 1 (#9614)
[build] Generate `WorkloadDependencies.json` (#9613)
[monodroid] remove `monodroid_get_log_categories()` (#9625)
[monodroid] remove `_monodroid_get_identity_hash_code` (#9622)
Bump to dotnet/java-interop@f800ea52 (#9607)
[XABT] Break BuildApk into individual tasks for each content type. (#9612)
[Mono.Android] Bind Android API-Baklava DP1 (#9594)
[Xamarin.Android.Build.Tasks] Extract `BuildArchive` from `BuildApk` (#9556)
[NativeAOT] MSBuild-related logic to get projects to build (#9583)
[build] remove remnants of `OpenTK-1.0.dll` (#9610)
[build] remove `Xamarin.Android.CSharp.targets` (#9609)
[build] runtime "flavors" part 2 (#9598)
Bump com.android.tools.build:manifest-merger to 31.7.3 (#9600)
...
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Jan 17, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jonathanpeppers@jonpryor