8261838: Shenandoah: reconsider heap region iterators memory ordering#2593
8261838: Shenandoah: reconsider heap region iterators memory ordering#2593shipilev wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back shade! A progress list of the required criteria for merging this PR into |
|
@shipilev 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 5 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
@shipilev Since your change was applied there have been 33 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit fd098e7. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
We use CASes to distributed workers between regions. 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 region distribution code, and "relaxed" is enough, since we don't piggyback memory ordering on these.
This also calls for some refactoring in the code itself.
Additional testing:
hotspot_gc_shenandoahProgress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2593/head:pull/2593$ git checkout pull/2593