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
8223923: C2: Missing interference with mismatched unsafe accesses #5146
Conversation
iwanowww
commented
Aug 17, 2021
•
edited by openjdk <span class="Label Label--secondary">bot</span>
edited by openjdk <span class="Label Label--secondary">bot</span>
|
@iwanowww 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 12 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.
|
Thanks for the review, Tobias. /integrate |
Going to push as commit 86add21.
Your commit was automatically rebased without conflicts. |
Memory effects of mixed or mismatched unsafe accesses aren't properly tracked, so every problematic access is wrapped into a pair of
MemBarCPUOrder
nodes to isolate it from the rest of the memory graph. ButMemNode::can_see_stored_value()
unconditionally steps overMemBarCPUOrder
and exposes problematicMergeMem
nodes.Proposed fix forbids stepping over
MemBarCPUOrder
nodes when looking for an earlier store into the same location.Alternatively, a new kind of barrier could be introduced specifically for isolation purposes, but I didn't spot any issues during performance testing with the current patch to justify more complex solution.
Testing: hs-tier1 - hs-tier6, performance testing.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5146/head:pull/5146
$ git checkout pull/5146
Update a local copy of the PR:
$ git checkout pull/5146
$ git pull https://git.openjdk.java.net/jdk pull/5146/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5146
View PR using the GUI difftool:
$ git pr show -t 5146
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5146.diff