-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epic: Trimming and Native AOT in .NET 9 #96511
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsThis is an in-progress record of work planned for Native AOT in .NET 9. As always, nothing is promised until it's done and shipped.
|
Any chance to finalize the NativeAOT-android experiment with JNI support and ship it in .NET 9? |
This might be something for .NET 10, but any plans on optimizing the initialization process in the entry point of DLLs (the real entry point, not the managed one)? This might be a bit specific, but for example, when I tried to manually map a simple NativeAOT DLL into memory (aka replicate the process of LoadLibrary but manually), I ran into many errors. But one error that really caught my attention was |
Sorry, didn't see this question earlier. Answer is no. Getting the JNI support requires having Java interop work with CoreCLR (not just Mono) and that's a large feature. In particular, the existing support uses direct interaction with the Mono GC (sgen), so it needs to be rewritten to either use the CoreCLR GC, or ideally rewritten to not depend on specific unmanaged GC APIs at all. |
There isn't/shouldn't be. If you walk through the Native AOT code in a native debugger you can see the entire chain. There's not much going on. Your case sounds more like a bug to me. I would try debugging it and figure out exactly what's going wrong. You could also file an issue if you have a minimal repro. |
Closing out as we're still working on bugs, but it's unlikely that we're bringing in anything new and big for net9 |
This is an in-progress record of work planned for Native AOT in .NET 9. As always, nothing is promised until it's done and shipped.
The text was updated successfully, but these errors were encountered: