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

[JVMCI] serviceability/dcmd/compiler/CompilerQueueTest.java fails

    XMLWordPrintable

Details

    • b08

    Description

      The WhiteBox.lockCompilation method is broken under UseJVMCICompiler as shown by the serviceability/dcmd/compiler/CompilerQueueTest.java test failing:

      test CompilerQueueTest.jmx(): failure
      java.lang.AssertionError: expected [false] but found [true]
          at org.testng.Assert.fail(Assert.java:99)
          at org.testng.Assert.failNotEquals(Assert.java:1037)
          at org.testng.Assert.assertEqualsImpl(Assert.java:140)
          at org.testng.Assert.assertEquals(Assert.java:122)
          at org.testng.Assert.assertEquals(Assert.java:819)
          at org.testng.Assert.assertEquals(Assert.java:829)
          at CompilerQueueTest.run(CompilerQueueTest.java:107)
          at CompilerQueueTest.jmx(CompilerQueueTest.java:144)

      There is a similar failure in compiler/whitebox/LockCompilationTest.java:

      java.lang.RuntimeException: private int compiler.whitebox.SimpleTestCaseHelper.method() must be in queue: expected true, was false
          at jdk.test.lib.Asserts.fail(Asserts.java:594)
          at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
          at compiler.whitebox.LockCompilationTest.test(LockCompilationTest.java:73)
          at compiler.whitebox.CompilerWhiteBoxTest.runTest(CompilerWhiteBoxTest.java:168)
          at compiler.whitebox.CompilerWhiteBoxTest.main(CompilerWhiteBoxTest.java:131)
          at compiler.whitebox.LockCompilationTest.main(LockCompilationTest.java:49)
          at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
          at java.base/java.lang.reflect.Method.invoke(Method.java:578)
          at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
          at java.base/java.lang.Thread.run(Thread.java:1583)
      java.lang.RuntimeException: private int compiler.whitebox.SimpleTestCaseHelper.method() must be in queue: expected true, was false
          at jdk.test.lib.Asserts.fail(Asserts.java:594)
          at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
          at compiler.whitebox.LockCompilationTest.test(LockCompilationTest.java:73)
          at compiler.whitebox.CompilerWhiteBoxTest.runTest(CompilerWhiteBoxTest.java:168)
          at compiler.whitebox.CompilerWhiteBoxTest.main(CompilerWhiteBoxTest.java:131)
          at compiler.whitebox.LockCompilationTest.main(LockCompilationTest.java:49)
          at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
          at java.base/java.lang.reflect.Method.invoke(Method.java:578)
          at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
          at java.base/java.lang.Thread.run(Thread.java:1583)

      Attachments

        Issue Links

          Activity

            People

              dnsimon Douglas Simon
              dnsimon Douglas Simon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: