[lworld] RFR: 8378375: [lworld] System.identityHashCode for value objects should vary by its class
Paul Hübner
phubner at openjdk.org
Fri Feb 27 16:16:26 UTC 2026
On Wed, 25 Feb 2026 18:10:40 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> System.identityHashCode for value instance should include a salt value that varies by class.
> This improves the distribution of hashcodes for value classes with similar primitive fields.
> The class hashCode is a decent salt value and is readily available.
Marked as reviewed by phubner (Committer).
-------------
PR Review: https://git.openjdk.org/valhalla/pull/2169#pullrequestreview-3866257268
More information about the valhalla-dev
mailing list