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
8258192: Obsolete the CriticalJNINatives flag #6343
Conversation
|
@@ -1823,7 +1743,7 @@ nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, | |||
// | |||
// NW [ABI_REG_ARGS] <-- 1) R1_SP | |||
// [outgoing arguments] <-- 2) R1_SP + out_arg_slot_offset | |||
// [oopHandle area] <-- 3) R1_SP + oop_handle_offset (save area for critical natives) | |||
// [oopHandle area] <-- 3) R1_SP + oop_handle_offset (save area for critical natives) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
. The comment (save area for critical natives)
must be redundant now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know if the save area is still needed for something else, which is why I left the ?. I can remove the comment but haven't made any substantial changes here. I'm not sure if they're needed or not, but I can't test them if I made them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, you did the same here: https://github.com/openjdk/jdk/pull/6343/files#diff-060e534de775616a893aa969f3639e53666cda9e93bed7c3a3c14b9cdc4cdba0L1553-L1554 -- and that change is understandable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking further, the area is needed (stores oops there), but not the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of all platforms. move_ptr(MacroAssembler*, VMRegPair, VMRegPair, int)
needs to get removed to avoid build warnings on PPC64 and s390.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing, Aleksey. I made the changes and will retest.
Thanks for finding move_ptr @TheRealMDoerr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
@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 no new commits pushed to the
|
Thanks for reviewing @TheRealMDoerr . @shipilev does this look good now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I am fine with this.
@coleenp this pull request can not be integrated into git checkout critical
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
Thanks @shipilev . All the GHA passed after resolving above merge conflict. |
Going to push as commit 0d2980c.
Your commit was automatically rebased without conflicts. |
This change removes the disabled CriticalJNINatives code, and the flag now gives an obsolete message.
Tested with tier1 on cpus x64, aarch64, and builds on linux-x86-open,linux-s390x-open,linux-arm32-debug,linux-ppc64le-debug.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6343/head:pull/6343
$ git checkout pull/6343
Update a local copy of the PR:
$ git checkout pull/6343
$ git pull https://git.openjdk.java.net/jdk pull/6343/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6343
View PR using the GUI difftool:
$ git pr show -t 6343
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6343.diff