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

misc gc/g1/unloading tests fails with "RuntimeException: Method could not be enqueued for compilation at level N"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      x86_64
    • OS:
      linux

      Description

      The following two test failed in the JDK17 CI:

      vmTestbase/gc/g1/unloading/tests/unloading_compilation_level4_keep_obj/TestDescription.java
      vmTestbase/gc/g1/unloading/tests/unloading_compilation_level4_inMemoryCompilation_keep_obj/TestDescription.java

      Here's a snippet from the unloading_compilation_level4_keep_obj log file:

      In method of generated class. Random.nextDouble = 0.7275636800328681
       Printing bytesToReplace0 bytesToReplace2
      WB error: failed to compile at level 4 method ClassAbc_24__________________________________::methodForCompilation
      java.lang.RuntimeException: Method could not be enqueued for compilation at level 4
      at gc.g1.unloading.loading.ClassLoadingHelper.warmUpClassIfNeeded(ClassLoadingHelper.java:294)
      at gc.g1.unloading.loading.ClassLoadingHelper.loadClassThatGonnaDie(ClassLoadingHelper.java:194)
      at gc.g1.unloading.UnloadingTest.run(UnloadingTest.java:109)
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:82)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
      at nsk.share.test.Tests.runTest(Tests.java:102)
      at gc.g1.unloading.UnloadingTest.main(UnloadingTest.java:67)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)
      ----------System.err:(16/960)----------
      nsk.share.TestFailure: Test exit code: 97
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:90)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
      at nsk.share.test.Tests.runTest(Tests.java:102)
      at gc.g1.unloading.UnloadingTest.main(UnloadingTest.java:67)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: nsk.share.TestFailure: Test exit code: 97
      ----------rerun:(45/9296)*----------


      Here's a snippet from the unloading_compilation_level4_inMemoryCompilation_keep_obj log file:

      In method of generated class. Random.nextDouble = 0.7275636800328681
       Printing bytesToReplace0 bytesToReplace2
      WB error: failed to compile at level 4 method ClassAbc_20__________________________________::methodForCompilation
      java.lang.RuntimeException: Method could not be enqueued for compilation at level 4
      at gc.g1.unloading.loading.ClassLoadingHelper.warmUpClassIfNeeded(ClassLoadingHelper.java:294)
      at gc.g1.unloading.loading.ClassLoadingHelper.loadClassThatGonnaDie(ClassLoadingHelper.java:194)
      at gc.g1.unloading.UnloadingTest.run(UnloadingTest.java:109)
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:82)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
      at nsk.share.test.Tests.runTest(Tests.java:102)
      at gc.g1.unloading.UnloadingTest.main(UnloadingTest.java:67)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)
      ----------System.err:(16/960)----------
      nsk.share.TestFailure: Test exit code: 97
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:90)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
      at nsk.share.test.Tests.runTest(Tests.java:102)
      at gc.g1.unloading.UnloadingTest.main(UnloadingTest.java:67)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: nsk.share.TestFailure: Test exit code: 97
      ----------rerun:(45/9537)*----------

      Both are GC tests failing in a GC test task so I'm starting this
      bug off in hotspot/gc for initial triage.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kvn Vladimir Kozlov
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: