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

runtime/ClassUnload/UnloadTest.java failed with "Test failed: should still be live"

    XMLWordPrintable

Details

    • gc
    • b26
    • x86_64, aarch64
    • linux, windows

    Description

      The following test failed in the JDK20 CI:

      runtime/ClassUnload/UnloadTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/540)----------
      command: main -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xlog:class+unload=debug UnloadTest
      reason: User specified action: run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xlog:class+unload=debug UnloadTest
      started: Mon Nov 28 19:58:35 UTC 2022
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
      finished: Mon Nov 28 19:59:02 UTC 2022
      elapsed time (seconds): 26.706
      ----------configuration:(4/111)----------
      Boot Layer
        add modules: java.base
        add exports: java.base/jdk.internal.misc ALL-UNNAMED

      ----------System.out:(11/1164)----------
      Refcount of symbol ClassUnloadCommonClassLoader is 3
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801008800 0x0000000801008800
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801007c00 0x0000000801007c00
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801007800 0x0000000801007800
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801007400 0x0000000801007400
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801006800 0x0000000801006800
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801005800 0x0000000801005800
      [26.028s][info][class,unload] unloading class test.Empty 0x0000000801005000
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801003000 0x0000000801003000
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801002800 0x0000000801002800
      [26.028s][info][class,unload] unloading class java.lang.invoke.LambdaForm$MH/0x0000000801000800 0x0000000801000800
      ----------System.err:(13/876)----------
      jdk.test.lib.classloader.ClassUnloadCommon$TestFailure: Test failed: should still be live
      at jdk.test.lib.classloader.ClassUnloadCommon.failIf(ClassUnloadCommon.java:51)
      at UnloadTest.test_unload_instance_klass(UnloadTest.java:75)
      at UnloadTest.main(UnloadTest.java:53)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1591)

      JavaTest Message: Test threw exception: jdk.test.lib.classloader.ClassUnloadCommon$TestFailure: Test failed: should still be live
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: jdk.test.lib.classloader.ClassUnloadCommon$TestFailure: Test failed: should still be live
      ----------rerun:(50/8569)*----------

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: