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

Tobias Hartmann thartmann at openjdk.org
Fri Jan 16 14:46:56 UTC 2026


On Fri, 16 Jan 2026 14:43:28 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> For all value classes, including the wrapper classes,  seed the AltHashCode implementation on the SALT value.
>
> Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - Re-enable the Alt hashcode implementation to be used with -XX:+UseAltSubstitutabilityMethod
>  - Merge branch 'lworld' into 8375319-hashcode-add-salt
>  - 8375319: [lworld] System.identityHashCode wrong for Wrapper classes with -XX:+UseAltSubstitutabilityMethod
>    Seed the AltHashCode implementation on the SALT value.

Looks good to me.

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

Marked as reviewed by thartmann (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/1924#pullrequestreview-3671201104


More information about the valhalla-dev mailing list