8320807: [PPC64][ZGC] C1 generates wrong code for atomics#16835
8320807: [PPC64][ZGC] C1 generates wrong code for atomics#16835TheRealMDoerr wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back mdoerr! A progress list of the required criteria for merging this PR into |
|
@TheRealMDoerr The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
RealLucy
left a comment
There was a problem hiding this comment.
Looks good.
Thanks for detecting and fixing this bug.
|
@TheRealMDoerr 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 90 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. ➡️ To integrate this PR with the above commit message to the |
reinrich
left a comment
There was a problem hiding this comment.
Looks good. Just two suggestions to improve comments.
Cheers, Richard.
| Unimplemented(); | ||
| } | ||
|
|
||
| // Volatile load may be followed by Unsafe CAS. |
There was a problem hiding this comment.
| // Volatile load may be followed by Unsafe CAS. | |
| // There might be a volatile load before this Unsafe CAS. |
| } | ||
| } | ||
|
|
||
| // Volatile load may be followed by Unsafe OP. |
There was a problem hiding this comment.
| // Volatile load may be followed by Unsafe OP. | |
| // There might be a volatile load before this Unsafe OP. |
|
Thanks for the reviews! I've improved the comments as suggested. |
|
/integrate |
|
Going to push as commit 3087e14.
Your commit was automatically rebased without conflicts. |
|
@TheRealMDoerr Pushed as commit 3087e14. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Debugging test failures on PPC64 in java/lang/Thread/virtual/stress/Skynet.java#ZGenerational has shown that the ldarx+stdcx_ loop for uncompressed Oops in
LIR_Assembler::atomic_opis wrong:__ mr(Rtmp, Robj);is inside of the ldarx+stdcx_ loop, but must be outside of it. Repeated execution leads to wrong store value.In addition, zBarrierSetC1.cpp expects
cas_objandxchgto contain all necessary memory barriers. That doesn't fit to the current PPC64 design which inserts memory barriers on LIR level instead. I've changed this and moved them into the assembler code for all GCs.While debugging, I have optimized out an unnecessary branch in
ZBarrierSetAssembler::store_barrier_medium.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16835/head:pull/16835$ git checkout pull/16835Update a local copy of the PR:
$ git checkout pull/16835$ git pull https://git.openjdk.org/jdk.git pull/16835/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16835View PR using the GUI difftool:
$ git pr show -t 16835Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16835.diff
Webrev
Link to Webrev Comment