8291302: ARM32: nmethod entry barriers support#11442
8291302: ARM32: nmethod entry barriers support#11442voitylov wants to merge 5 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back avoitylov! A progress list of the required criteria for merging this PR into |
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 |
fisk
left a comment
There was a problem hiding this comment.
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.
reinrich
left a comment
There was a problem hiding this comment.
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. |
TheRealMDoerr
left a comment
There was a problem hiding this comment.
LGTM, but I'm not an arm 32 expert.
|
@voitylov This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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. ➡️ To flag this PR as ready for integration with the above commit message, type |
reinrich
left a comment
There was a problem hiding this comment.
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. |
theRealAph
left a comment
There was a problem hiding this comment.
Looks reasonable. Please consider my cleanups.
|
Thanks @theRealAph . Your suggestions for cleanups are addressed. |
TheRealMDoerr
left a comment
There was a problem hiding this comment.
Thanks for the cleanup! Still looks good. I think the PR is ready for integration. You have 3 reviews and the concerns were addressed.
|
/integrate |
|
/sponsor |
|
Going to push as commit 245f0cf.
Your commit was automatically rebased without conflicts. |
|
@TheRealMDoerr @voitylov Pushed as commit 245f0cf. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
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
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11442/head:pull/11442$ git checkout pull/11442Update a local copy of the PR:
$ git checkout pull/11442$ git pull https://git.openjdk.org/jdk pull/11442/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11442View PR using the GUI difftool:
$ git pr show -t 11442Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11442.diff