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
8233343: Deprecate -XX:+CriticalJNINatives flag which implements JavaCritical native functions #764
Conversation
…Critical native functions
|
Webrevs
|
Makes sense to me. But I have a couple of remarks/suggestions:
|
@TheRealMDoerr Thank you for reviewing this and your comments.
|
Agree, object pinning is no longer needed for critical native in Shenandoah. |
@coleenp This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 77 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
|
Thank you for the code reviews! |
@coleenp Since your change was applied there have been 77 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 56ea490. |
This change deprecates the -XX:+CriticalJNINatives flag and removes the develop flag -XX:+StressCriticalJNINatives. See CSR for more details.
This change also removes the lazy GC lock in the critical native transition, and runs the critical native function as thread_in_Java. I add a safepoint check at the end of the native function and transition to native and poll again for the safepoint after the function if a safepoint is requested.
Tested with tier 1-6 (we have a few tests that use this). And built on linux-x86-open,linux-s390x-open,linux-arm32-debug,linux-ppc64le-debug.
Progress
Testing
Failed test task
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/764/head:pull/764
$ git checkout pull/764