-
Bug
-
Resolution: Duplicate
-
P4
-
22
The java/lang/ClassLoader/loadLibraryDeadlock/TestLoadLibraryDeadlock.java test fails transiently on libgraal when run with -Xcomp with:
java.lang.RuntimeException: Unable to load native library.: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:594)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
at TestLoadLibraryDeadlock.main(TestLoadLibraryDeadlock.java:229)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
I'm guessing the problem is that there is a hard coded timeout in the test[1] that does not take -Xcomp into account.
[1] https://github.com/openjdk/jdk/blob/2fd870a74fb35cb55b69f0dc6bf041441d658ffa/test/jdk/java/lang/ClassLoader/loadLibraryDeadlock/TestLoadLibraryDeadlock.java#L205
java.lang.RuntimeException: Unable to load native library.: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:594)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
at TestLoadLibraryDeadlock.main(TestLoadLibraryDeadlock.java:229)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
I'm guessing the problem is that there is a hard coded timeout in the test[1] that does not take -Xcomp into account.
[1] https://github.com/openjdk/jdk/blob/2fd870a74fb35cb55b69f0dc6bf041441d658ffa/test/jdk/java/lang/ClassLoader/loadLibraryDeadlock/TestLoadLibraryDeadlock.java#L205
- duplicates
-
JDK-8319265 TestLoadLibraryDeadlock.java fails on windows-x64 "Unable to load b.jar"
- Closed
- relates to
-
JDK-8317965 TestLoadLibraryDeadlock.java fails with "Unable to load native library.: expected true, was false"
- Closed