8374147: [lworld] Cleanup markword bit masks and constants#2238
Open
caspernorrbin wants to merge 1 commit intoopenjdk:lworldfrom
Open
8374147: [lworld] Cleanup markword bit masks and constants#2238caspernorrbin wants to merge 1 commit intoopenjdk:lworldfrom
caspernorrbin wants to merge 1 commit intoopenjdk:lworldfrom
Conversation
|
👋 Welcome back cnorrbin! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi everyone,
The current naming of the Valhalla-related
markWorddefinitions is a bit confusing and does not really match the mainline naming scheme. In particular, the new*_mask_in_placeconstants are not just the corresponding*_maskshifted into place. They are instead used as classification masks, so they also include either lock bits or other Valhalla bits.In this change I tried to make the structure and naming more regular, closer to the pattern we already use in mainline, and also closer to how the non-Valhalla bits are laid out here.
I split the definitions into a clearer flow:
*_maskfor all Valhalla fields.*_mask_in_placefor the Valhalla fields, but as the shifted version of each corresponding mask.*_pattern_maskconstants for the composite masks, to make it clearer that these represent more than a single field mask. This also matches the existing*_patternnaming better.As part of this, I updated all uses to the new names that match the intended naming. Overall, this gives the
markWordbit definitions a more consistent and easier to follow structure.Testing:
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2238/head:pull/2238$ git checkout pull/2238Update a local copy of the PR:
$ git checkout pull/2238$ git pull https://git.openjdk.org/valhalla.git pull/2238/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2238View PR using the GUI difftool:
$ git pr show -t 2238Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2238.diff
Using Webrev
Link to Webrev Comment