org.graalvm.compiler.hotspot.test.ArrayNewInstanceTest fails
java.lang.AssertionError
at org.graalvm.compiler.hotspot.test.ArrayNewInstanceTest.testNewArrayInLoop(ArrayNewInstanceTest.java:102)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
when running with -Xcomp mode (note no JIT graal is used).
Steps to reproduce:
> make run-test TEST="compiler/graalunit/HotspotTest.java" TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:-UseJVMCICompiler -Xcomp"
Or you can create smaller test to run just 2 Array tests:
> compiler/graalunit/ArrayTests.java
/*
* @test
* @summary
* @requires vm.opt.final.EnableJVMCI == true
*
* @modules jdk.internal.vm.compiler
*
* @library /test/lib /compiler/graalunit /
*
* @build compiler.graalunit.common.GraalUnitTestLauncher
*
* @run main compiler.graalunit.common.GraalUnitTestLauncher -prefix org.graalvm.compiler.hotspot.test.Array
*/
> make run-test TEST="compiler/graalunit/ArrayTests.java" TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:-UseJVMCICompiler -Xcomp"