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

RISC-V: VirtualThreadDeadlocks.java failed with Zacas

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 24
    • hotspot
    • riscv
    • linux

      Fei writes:
      #############################################################################
      FYI: I found that following test fails with Zacas when running in QEMU system (9.1.0):
          $ make test TEST="java/lang/management/ThreadMXBean/VirtualThreadDeadlocks.java" JTREG="VM_OPTIONS=-XX:+UnlockExperimentalVMOptions -XX:+UseZacas;TIMEOUT_FACTOR=32"

      Error message:
      STDOUT:
      thread1 => Thread[#23,Thread-1,5,MainThreadGroup]
      thread2 => Thread[#24,Thread-2,5,MainThreadGroup]
      Waiting for thread1 and thread2 to deadlock ...
      findMonitorDeadlockedThreads => null
      expected => [23, 24]
      STDERR:
      java.lang.RuntimeException: Unexpected result
              at VirtualThreadDeadlocks.main(VirtualThreadDeadlocks.java:108)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:565)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1447)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Unexpected result
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Unexpected result
      #############################################################################

            rehn Robbin Ehn
            rehn Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: