On Wed, 24 Jun 2026 02:26:29 GMT, Chen Liang <[email protected]> wrote:
> 1. `weakCompareAndSetReferenceXxx` in `Unsafe` were delegating to wrong > methods > 2. Replace use of `0` for reference layout with `Unsafe.NON_FLAT_LAYOUT` > 3. Replace use of `31 - Integer.numberOfLeadingZeros(ascale)` with > `numberOfTrailingZeros` > 4. Remove null check for VarHandle getting from NR fields (parity with > ArrayVarHandle and DirectMethodHandle), add missing null check for flat value > var handles > 5. Remove the weird directives and old flags of RecursiveValueClass > > Thanks to @JornVernee and @AlanBateman for spotting these issues. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 59019cf2 Author: Chen Liang <[email protected]> URL: https://git.openjdk.org/valhalla/commit/59019cf2e56314370c18c47398419cd54f08d2e9 Stats: 123 lines in 6 files changed: 24 ins; 61 del; 38 mod 8387192: [lworld] Review comment drop for core libs Reviewed-by: jvernee, vromero ------------- PR: https://git.openjdk.org/valhalla/pull/2576
