-
Bug
-
Resolution: Fixed
-
P3
-
8u144, 9, 10
-
b36
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8193739 | 11 | Tobias Hartmann | P3 | Resolved | Fixed | team |
java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java failed on all platforms in hs PIT:
#section:main
----------messages:(4/196)----------
command: main -Xcheck:jni NativeLibraryTest
reason: User specified action: run main/othervm/native -Xcheck:jni NativeLibraryTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 19.326
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(15/932)----------
java.lang.RuntimeException: Expected count = 1 but got 2
at testloader//p.Test.run(Test.java:34)
at NativeLibraryTest.runTest(NativeLibraryTest.java:81)
at NativeLibraryTest.main(NativeLibraryTest.java:56)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected count = 1 but got 2
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected count = 1 but got 2
#section:main
----------messages:(4/196)----------
command: main -Xcheck:jni NativeLibraryTest
reason: User specified action: run main/othervm/native -Xcheck:jni NativeLibraryTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 19.326
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(15/932)----------
java.lang.RuntimeException: Expected count = 1 but got 2
at testloader//p.Test.run(Test.java:34)
at NativeLibraryTest.runTest(NativeLibraryTest.java:81)
at NativeLibraryTest.main(NativeLibraryTest.java:56)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:844)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected count = 1 but got 2
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected count = 1 but got 2
- backported by
-
JDK-8193739 Lookup of critical JNI method causes duplicate library loading with leaking handler
- Resolved
- relates to
-
JDK-7013347 allow crypto functions to be called inline to enhance performance
- Resolved
-
JDK-8193042 NativeLookup::lookup_critical_entry() should only load shared library once
- Resolved
-
JDK-8195695 NativeLibraryTest.java fails w/ 'Expected unloaded=1 but got=0'
- Resolved
-
JDK-8164512 Replace ClassLoader use of finalizer with phantom reference to unload native library
- Resolved