-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8374145: Remove legacy locking remnants from markWord #28927
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
8374145: Remove legacy locking remnants from markWord #28927
Conversation
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. Just one thought.
| } else if (w.is_being_inflated() || w.has_displaced_mark_helper()) { | ||
| // Informs caller that we aren't able to determine the age | ||
| return markWord::max_age + 1; // sentinel |
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.
Not sure if we want an !w.has_displaced_mark_helper() assert. Even if we already check for (and handled) the exact conditions (in the current implementation) for has_displaced_mark_helper().
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.
That would work for me. I'll wait for input from the Shenandoah devs.
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.
In the interest to get this integrated I've created an Enh for this:
https://bugs.openjdk.org/browse/JDK-8374191
|
👋 Welcome back stefank! A progress list of the required criteria for merging this PR into |
|
@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 31 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 |
kimbarrett
left a comment
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. No opinion about @xmas92 suggestion in the shenandoah change.
coleenp
left a comment
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.
Thanks for finding these.
stefank
left a comment
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.
Thanks for the reviews!
| } else if (w.is_being_inflated() || w.has_displaced_mark_helper()) { | ||
| // Informs caller that we aren't able to determine the age | ||
| return markWord::max_age + 1; // sentinel |
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.
In the interest to get this integrated I've created an Enh for this:
https://bugs.openjdk.org/browse/JDK-8374191
|
/integrate |
|
Going to push as commit e6c3ebe.
Your commit was automatically rebased without conflicts. |
There's a bunch of unused code in markWord that used to be used by the removed legacy locking. I propose that we remove it.
There's a Shenandoah change that should be checked closer. My thinking is:
is_being_inflated: always returns falsehas_displaced_mark_helper: Only returns true if both these are true:!UseCompactObjectTable- there's an early return for this earlier in the function.lockbits == monitor_value- checked in the if-statement aboveProgress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28927/head:pull/28927$ git checkout pull/28927Update a local copy of the PR:
$ git checkout pull/28927$ git pull https://git.openjdk.org/jdk.git pull/28927/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28927View PR using the GUI difftool:
$ git pr show -t 28927Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28927.diff
Using Webrev
Link to Webrev Comment