Details
-
Bug
-
Resolution: Fixed
-
P2
-
20
-
b07
-
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/200)----------
command: main -Xcheck:jni LoadLibraryUnload
reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnload
Mode: othervm [/othervm specified]
elapsed time (seconds): 98.677
----------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)*----------
These failures first appeared in jdk-20+7-329-tier6 which includes the fix for:
JDK-8289919 [test] LoadLibraryUnloadTest.java failed with "Failed to unload native library"
so [~rriggs] will probably be interested in this bug.
java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnload.java
Here's a snippet from the log file:
#section:main
----------messages:(4/200)----------
command: main -Xcheck:jni LoadLibraryUnload
reason: User specified action: run main/othervm/native -Xcheck:jni LoadLibraryUnload
Mode: othervm [/othervm specified]
elapsed time (seconds): 98.677
----------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)*----------
These failures first appeared in jdk-20+7-329-tier6 which includes the fix for:
so [~rriggs] will probably be interested in this bug.
Attachments
Issue Links
- relates to
-
JDK-8289919 [test] LoadLibraryUnloadTest.java failed with "Failed to unload native library"
-
- Closed
-
-
JDK-8290848 LoadLibraryUnload.java still fails with "Too few cleared WeakReferences"
-
- Closed
-