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

[Graal] compiler/uncommontrap/TestUnstableIfTrap.java fails in Graal JIT mode

    Details

    • Subcomponent:
    • Resolved In Build:
      b01

      Description

      compiler/uncommontrap/TestUnstableIfTrap.java run with "-XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal" fails with error

      ----------System.out:(1/47)----------
      Verifying log file: always_taken_not_fired.xml
      ----------System.err:(17/1223)----------
      java.lang.RuntimeException: Uncommon trap that matches following string in compilation log should be emitted: <uncommon_trap bci='5' reason='unstable_if' action='.*' comment='taken always'.: expected true to equal false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at jdk.test.lib.Asserts.assertEQ(Asserts.java:178)
      at compiler.testlibrary.uncommontrap.Verifier.verifyUncommonTrapEmitted(Verifier.java:116)
      at compiler.testlibrary.uncommontrap.Verifier.verify(Verifier.java:96)
      at compiler.testlibrary.uncommontrap.Verifier.main(Verifier.java:70)
      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 com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
      at java.base/java.lang.Thread.run(Thread.java:844)

      Steps to reproduce:
      > jtreg -vt -jdk:JDK_HS_fastdebug -dir:test/hotspot/jtreg
        -javaoptions:-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal
        compiler/uncommontrap/TestUnstableIfTrap.java

      Compiler team, please advise if this is Graal issue or not.

        Attachments

          Activity

            People

            • Assignee:
              thartmann Tobias Hartmann
              Reporter:
              epavlova Ekaterina Pavlova
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: