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
8291302: ARM32: nmethod entry barriers support #11442
Conversation
|
Webrevs
|
Errors in pre-submit tests are clearly unrelated, GHA can't download the bundles for linux-x86: Error: Unable to find an artifact with the name: bundles-linux-x86 |
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.
When you call the nmethod entry barrier slow path, floating point arguments are live, but can get clobbered by the C++ runtime. You need to save them. That's probably why you can't print in the slow path without crashing.
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.
Hi Aleksei,
thanks for picking up the work on ARM32 support of nmethod entry barriers.
Is my assumption correct that ARM32 supports neither ZGC nor ShenandoahGC? If so you could simplify the implementation.
Thanks, Richard.
@fisk @reinrich Thank you for your suggestions. This iteration saves floating registers and can successfully log deoptimization. I'd prefer to keep the code in line with the same code for other ports and not carve out memory barriers by hand, if @reinrich would agree. This also allows a more straightforward port for additional GCs in the future, should there be any demand. |
Please note that the memory barrier has caused a performance regression on PPC64 (as on AArch64): https://bugs.openjdk.org/browse/JDK-8295069 |
The removed membar can be added later if and when support for other GCs is added to ARM32. |
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, but I'm not an arm 32 expert.
@voitylov 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 233 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@fisk, @reinrich, @TheRealMDoerr, @theRealAph) but any other Committer may sponsor as well.
|
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 changes look good to me. I'm not familiar with arm32 details, though.
You might want to open an RFE to port JDK-8290700 to arm32.
Thanks, Richard.
Looks good! |
@TheRealMDoerr @reinrich @bulasevich thank you for your reviews! |
@fisk do you have any further comments? I'd like to have this in to continue working on Loom. |
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.
Looks reasonable. Please consider my cleanups.
Thanks @theRealAph . Your suggestions for cleanups are addressed. |
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 the cleanup! Still looks good. I think the PR is ready for integration. You have 3 reviews and the concerns were addressed.
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.
Looks good.
/integrate |
/sponsor |
Going to push as commit 245f0cf.
Your commit was automatically rebased without conflicts. |
@TheRealMDoerr @voitylov Pushed as commit 245f0cf. |
This PR implements nmethod entry barriers for ARM32. It has already been implemented for other ports and is related with JDK-8290025 "Remove the Sweeper".
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11442/head:pull/11442
$ git checkout pull/11442
Update a local copy of the PR:
$ git checkout pull/11442
$ git pull https://git.openjdk.org/jdk pull/11442/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11442
View PR using the GUI difftool:
$ git pr show -t 11442
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11442.diff