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] Improve performance of acmp
-
- In Progress
-