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
8261495: Shenandoah: reconsider update references memory ordering #2498
8261495: Shenandoah: reconsider update references memory ordering #2498
Conversation
|
Webrevs
|
@shipilev 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 19 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.
|
@shipilev This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Not yet, bot. Waiting for JDK-8261579 to remeasure perf differences. |
@shipilev This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Not yet, bot. Still waiting. |
@shipilev This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Not now, bot. Still waiting. |
0d29996
to
a033e37
Compare
a033e37
to
71f419f
Compare
@rkennke, @zhengyu123 -- please take a look again. Now that JDK-8261579 is there, the performance data is available (PR body), and it seems to be ready to go. |
Still good to me. Thanks. |
/integrate |
Going to push as commit a96012a.
Your commit was automatically rebased without conflicts. |
Shenandoah update heap references code uses default Atomic::cmpxchg to avoid races with mutator updates. Hotspot's default for atomic operations is memory_order_conservative, which emits two-way memory fences around the CASes at least on AArch64 and PPC64.
This seems to be excessive for Shenandoah update references code, and "release" is enough. We do not seem to piggyback on update-references memory effects anywhere (in fact, if not for mutator, we would not even need a CAS). But, there is an interplay with concurrent evacuation and updates from self-healing.
Average time goes down, the number of GC cycles go up, since the cycles are shorter. For example,
SPECjvm2008:compiler.sunflow
:Additional testing:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/2498/head:pull/2498
$ git checkout pull/2498
Update a local copy of the PR:
$ git checkout pull/2498
$ git pull https://git.openjdk.java.net/jdk pull/2498/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2498
View PR using the GUI difftool:
$ git pr show -t 2498
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/2498.diff