-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8298376: ZGC: thaws stackChunk with stale oops #11585
Conversation
👋 Welcome back stefank! A progress list of the required criteria for merging this PR into |
/label add hotspot |
@stefank |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for adding the comment.
|
@stefank 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Should this be fixed for JDK 20? |
Yes. I'll backport this after pushing to 21. |
/integrate |
Going to push as commit ed8a212.
Your commit was automatically rebased without conflicts. |
/backport jdk20 |
@stefank the backport was successfully created on the branch stefank-backport-ed8a2120 in my personal fork of openjdk/jdk20. To create a pull request with this backport targeting openjdk/jdk20:master, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk20:
|
During the recent ZGC + Loom rewrites JDK-8296875 a bug was introduced, which causes Loom to thaw stackChunks with stale oops.
Before that change we made sure that only the GC performed load barriers on the cont oop in stackChunk, so that we could use the oop state as an indication of the age of the stackChunk. That information was then used in ZCollectedHeap::requires_barriers.
In Generational ZGC we changed the implementation of requires_barriers, so that the rest of the JVM didn't need to have special-handling of the cont oop. However, when upstreaming the changes in JDK-8296875 we purposefully didn't update requires_barriers, but we incorrectly brought over the removal of the special-handling of the cont oop.
To limit the fix for this bug, I propose that we restore the special-handling of the cont oop.
I've tested this with a reproducer running Fuzz.java + ZGC.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11585/head:pull/11585
$ git checkout pull/11585
Update a local copy of the PR:
$ git checkout pull/11585
$ git pull https://git.openjdk.org/jdk pull/11585/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11585
View PR using the GUI difftool:
$ git pr show -t 11585
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11585.diff