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

[Graal] org.graalvm.compiler.jtt.loop.Loop03 fails with AssertionError in -Xcomp mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 10
    • 10
    • hotspot

      Running org.graalvm.compiler.jtt.loop.Loop03 with " -Xcomp" flag fails with

      org.graalvm.compiler.jtt.loop.Loop03 started (1 of 1)
        run0: FAILED
      run0(org.graalvm.compiler.jtt.loop.Loop03)
      java.lang.AssertionError
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.loop.LoopFragmentInside.insertWithinAfter(LoopFragmentInside.java:156)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.loop.phases.LoopTransformations.partialUnroll(LoopTransformations.java:154)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase.run(LoopPartialUnrollPhase.java:64)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase.run(LoopPartialUnrollPhase.java:34)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:195)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:137)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.phases.PhaseSuite.run(PhaseSuite.java:203)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:195)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:137)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.core.GraalCompiler.emitFrontEnd(GraalCompiler.java:234)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:172)
              at org.graalvm.compiler.core.test.GraalCompilerTest.compile(GraalCompilerTest.java:1052)
              at org.graalvm.compiler.core.test.GraalCompilerTest.getCode(GraalCompilerTest.java:951)
              at org.graalvm.compiler.jtt.JTTTest.getCode(JTTTest.java:88)
              at org.graalvm.compiler.core.test.GraalCompilerTest.getCode(GraalCompilerTest.java:894)
              at org.graalvm.compiler.core.test.GraalCompilerTest.executeActual(GraalCompilerTest.java:730)
              at org.graalvm.compiler.core.test.GraalCompilerTest.executeActualCheckDeopt(GraalCompilerTest.java:862)
              at org.graalvm.compiler.core.test.GraalCompilerTest.testAgainstExpected(GraalCompilerTest.java:852)
              at org.graalvm.compiler.jtt.JTTTest.runTest(JTTTest.java:130)
              at org.graalvm.compiler.jtt.JTTTest.runTest(JTTTest.java:113)
              at org.graalvm.compiler.jtt.JTTTest.runTest(JTTTest.java:109)
              at org.graalvm.compiler.jtt.loop.Loop03.run0(Loop03.java:48)
              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:564)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.junit.runners.Suite.runChild(Suite.java:128)
              at org.junit.runners.Suite.runChild(Suite.java:27)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
              at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
              at com.oracle.mxtool.junit.MxJUnitWrapper.runRequest(MxJUnitWrapper.java:256)
              at com.oracle.mxtool.junit.MxJUnitWrapper.main(MxJUnitWrapper.java:190)


      Steps to reproduce:
      - copy required jars from graal ws (see what jars are used in attached java.cmd)
      - compile and edit JAVA_PATH in java.cmd
      - run as
        bash java.cmd com.oracle.mxtool.junit.MxJUnitWrapper -JUnitVerbose -JUnitEagerStackTrace org.graalvm.compiler.jtt.loop.Loop03

            never Tom Rodriguez
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: