8387192: [lworld] Review comment drop for core libs#2576
Conversation
|
👋 Welcome back liach! A progress list of the required criteria for merging this PR into |
|
@liach 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 4 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 |
Webrevs
|
viktorklang-ora
left a comment
There was a problem hiding this comment.
LGTM (after comments being handled)
| #if[Reference] | ||
| if (value == null && handle.nullRestricted) { | ||
| throw new NullPointerException("Uninitialized null-restricted field"); | ||
| } | ||
| #end[Reference] |
There was a problem hiding this comment.
Just for my understanding: why is it okay to remove this?
There was a problem hiding this comment.
The VM and low level libraries ensure null restricted fields never carry null upon write (with strict field initialization). The checks upon read are thus redundant. DirectMethodHandle getters and ArrayVarHandle both have no null check when they read values out of a null-restricted structure. So I think we don't need to be extra cautious here, too.
vicente-romero-oracle
left a comment
There was a problem hiding this comment.
looks sensible to me
|
Thanks for the reviews! /integrate |
|
Going to push as commit 59019cf.
Your commit was automatically rebased without conflicts. |
weakCompareAndSetReferenceXxxinUnsafewere delegating to wrong methods0for reference layout withUnsafe.NON_FLAT_LAYOUT31 - Integer.numberOfLeadingZeros(ascale)withnumberOfTrailingZerosThanks to @JornVernee and @AlanBateman for spotting these issues.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2576/head:pull/2576$ git checkout pull/2576Update a local copy of the PR:
$ git checkout pull/2576$ git pull https://git.openjdk.org/valhalla.git pull/2576/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2576View PR using the GUI difftool:
$ git pr show -t 2576Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2576.diff
Using Webrev
Link to Webrev Comment