Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222551

[Graal] org.graalvm.compiler.hotspot.test.ArrayNewInstanceTest fails with java.lang.AssertionError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 13
    • 13
    • hotspot

      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"

            dlong Dean Long
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: