On Thu, 4 Dec 2025 22:02:35 GMT, Roger Riggs <[email protected]> wrote:

> This test failing with VM options prompted a refatoring and cleanup of the 
> test (and renaming to be more appropriate).
> The test is re-enabled with a 4 combinations of command line flags.
> 
> Refactored test to verify that hashcode changed with each change to a field. 
> Previously, the test tried to compute the hashCode for the value class. That 
> was fragile in the presence of the VM changing the layout information. Check 
> the hashCodes are equal for objects that are `.equals`. Renamed to 
> 'ValueObjectMethodsTest`.

This pull request has now been integrated.

Changeset: 3455c56c
Author:    Roger Riggs <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/3455c56c83741104e1405c2de6a62c76eea3b46c
Stats:     687 lines in 2 files changed: 354 ins; 333 del; 0 mod

8357373: [lworld] jdk/valhalla/valuetypes/ObjectMethods.java fails with 
-XX:+UseAtomicValueFlattening

Reviewed-by: liach

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

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

Reply via email to