On Wed, 25 Feb 2026 18:10:40 GMT, Roger Riggs <[email protected]> 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. The simple test `test/jdk/valhalla/valuetypes/ValueObjectMethodsTest.java` should be expanded and run in multiple modes. It will probably need to fall back to a golden file or a very intimate test that knows exactly how the hashCode is computed. ------------- PR Comment: https://git.openjdk.org/valhalla/pull/2169#issuecomment-3962874783
