-
Notifications
You must be signed in to change notification settings - Fork 124
8367073: [lworld] Conform to JEP 450 encoding of mark word #1578
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
base: lworld
Are you sure you want to change the base?
Conversation
👋 Welcome back phubner! A progress list of the required criteria for merging this PR into |
@Arraying 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@coleenp, @fparain, @TobiHartmann) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
243e092
to
56269fd
Compare
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!
Webrevs
|
I'm going to go merge in the latest changes and re-run testing. I'll update the PR description with the testing result summary when done. |
src/hotspot/share/oops/markWord.hpp
Outdated
} | ||
|
||
private: | ||
inline uintptr_t write_bits(uintptr_t input, uintptr_t val, uint start, uint end) const { |
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.
Where is this method used?
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.
Good catch, it's left over from a prototype. Sorry about that, will remove.
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.
With the removal of the unused method, this looks good to me.
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 to me. Good job investigating and fixing this!
Node *lock_mask = _gvn.MakeConX(markWord::inline_type_mask_in_place); | ||
// We cannot use the inline type mask as this may check bits that are overriden | ||
// by an object monitor's pointer when inflating locking. | ||
Node *lock_mask = _gvn.MakeConX(markWord::lock_mask_in_place); |
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.
FTR, this merge commit broke it: 0e3418d
Hi all,
This PR refactors the mark word to use the order of bits as specified in JEP 450.
Specifically, there are three portions to this change:
hashCode
intrinsic that got unearthed as a result.Feedback is welcome, especially for the doc changes. If there are any ideas of other places in which similar miscompilations could occur, that would be valuable to know as well.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/1578/head:pull/1578
$ git checkout pull/1578
Update a local copy of the PR:
$ git checkout pull/1578
$ git pull https://git.openjdk.org/valhalla.git pull/1578/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1578
View PR using the GUI difftool:
$ git pr show -t 1578
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1578.diff
Using Webrev
Link to Webrev Comment