[lworld] RFR: 8375319: [lworld] System.identityHashCode wrong for Wrapper classes with -XX:+UseAltSubstitutabilityMethod

Roger Riggs rriggs at openjdk.org
Fri Jan 16 13:48:39 UTC 2026


For all value classes, including the wrapper classes,  seed the AltHashCode implementation on the SALT value.

-------------

Commit messages:
 - 8375319: [lworld] System.identityHashCode wrong for Wrapper classes with -XX:+UseAltSubstitutabilityMethod

Changes: https://git.openjdk.org/valhalla/pull/1924/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1924&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8375319
  Stats: 26 lines in 1 file changed: 13 ins; 12 del; 1 mod
  Patch: https://git.openjdk.org/valhalla/pull/1924.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1924/head:pull/1924

PR: https://git.openjdk.org/valhalla/pull/1924


More information about the valhalla-dev mailing list