Attached Test.java fails due to an incorrect result of acmp:
java --enable-preview -Xint Test.java
Exception in thread "main" java.lang.RuntimeException: Incorrect result 'true' for NestedValue(null) == NestedValue(IntValue(0, bits=0x0))
at Test.main(Test.java:59)
It passes without field flattening though:
java --enable-preview -Xint -XX:-UseFieldFlattening Test.java
Also happens with -XX:+UseAltSubstitutabilityMethod.
java --enable-preview -Xint Test.java
Exception in thread "main" java.lang.RuntimeException: Incorrect result 'true' for NestedValue(null) == NestedValue(IntValue(0, bits=0x0))
at Test.main(Test.java:59)
It passes without field flattening though:
java --enable-preview -Xint -XX:-UseFieldFlattening Test.java
Also happens with -XX:+UseAltSubstitutabilityMethod.
- blocks
-
JDK-8228361 [lworld] Optimize the substitutability check in C2
-
- Resolved
-
- relates to
-
JDK-8372955 [lworld] The alternate substitutability method doesn't increment the offset when iterating over segments
-
- Resolved
-
- links to
-
Commit(lworld)
openjdk/valhalla/51ff8f43
-
Review(lworld)
openjdk/valhalla/1790