-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NativeAOT] Integrate TryCreatePeer (#9746)
Context: dbb0b92 Context: dotnet/java-interop@dd3c1d0 Commit dbb0b92 had to copy significant parts of `JniRuntime.JniValueManager.CreatePeer()` in order to get the desired semantics. dotnet/java-interop@dd3c1d05 added a `TryCreatePeer()` virtual method in an effort to reduce the amount of copied code required. Update `NativeAotValueManager` to override the new method, allowing us to remove most of the `CreatePeer()` code added in dbb0b92. Additionally, override `GetInvokerTypeCore()` within `NativeAotTypeManager` so that .NET for Android -style `Invoker` types can be appropriately resolved.
- Loading branch information
Showing
2 changed files
with
42 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters