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

TestLoadLibraryDeadlock.java fails transiently on libgraal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 22
    • core-libs

      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

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: