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

LoadLibraryUnload.java still fails with "Too few cleared WeakReferences"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • core-libs
    • b08
    • x86_64
    • linux, windows
    • Verified

    Description

      The following test failed in the JDK20 CI:

      java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnload.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/201)----------
      command: main -Xcheck:jni LoadLibraryUnload
      reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnload
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 350.911
      ----------configuration:(0/0)----------
      ----------System.out:(7/178)----------
      Native library loaded.
      Native library loaded from Class1.
      Native library loaded from Class1.
      GlobalRef created
      GlobalRef deleted
      Native library unloaded.
      0 dequeued: null
      ----------System.err:(12/715)----------
      java.lang.RuntimeException: Too few cleared WeakReferences
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at LoadLibraryUnload.main(LoadLibraryUnload.java:172)
      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:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Too few cleared WeakReferences
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Too few cleared WeakReferences
      ----------rerun:(50/6100)*----------


      This test failure occurred in jdk-20+7-356-tier6 which includes the fix for:

      JDK-8290397 LoadLibraryUnload.java failed with "Too few cleared WeakReferences"

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: