The following test failed in the JDK17 CI:
vmTestbase/nsk/jvmti/GetThreadState/thrstat002/TestDescription.java
Here's a snippet from the log file:
#section:main
----------messages:(4/253)----------
command: main -agentlib:thrstat002 nsk.jvmti.GetThreadState.thrstat002 5
reason: User specified action: run main/othervm/native -agentlib:thrstat002 nsk.jvmti.GetThreadState.thrstat002 5
Mode: othervm [/othervm specified]
elapsed time (seconds): 6.941
----------configuration:(0/0)----------
----------System.out:(33/1927)----------
[4.126s][info][jfr,startup] Started recording 1. No limit specified, using maxsize=250MB as default.
[4.126s][info][jfr,startup]
[4.126s][info][jfr,startup] Use jcmd 79159 JFR.dump name=1 filename=FILEPATH to copy recording data to file.
# Waiting time = 5 mins
thrstat002a.run before startingBarrier.unlock
thrstat002.meth after thr.start()
thrstat002a.run after startingBarrier.unlock
thrstat002a.run before blockingMonitor lock
thrstat002.meth after thr.startingBarrier.waitFor()
thrstat002.meth after checkStatus(STATUS_MONITOR,false)
thrstat002.meth after thr.suspend()
thrstat002.meth after checkStatus(STATUS_MONITOR,true)
thrstat002.meth after thr.resume()
thrstat002.meth after checkStatus(STATUS_MONITOR,false)
thrstat002a.run blockingMonitor locked
thrstat002a.run after blockingMonitor lock
thrstat002a.run after runningBarrier unlock
thrstat002a.run before endingMonitor unlock
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: BLOCKED_ON_MONITOR_ENTER
START checkStatus for "thr1" (0x0x7ffd73d13498, suspended), check state: BLOCKED_ON_MONITOR_ENTER
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: BLOCKED_ON_MONITOR_ENTER
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: RUNNABLE
Wrong thread "thr1" (0x0x7ffd73d13498) state:
expected: RUNNABLE (4)
actual: ALIVE BLOCKED_ON_MONITOR_ENTER (1025)
Wrong thread "thr1" (0x0x7ffd73d13498) state after SuspendThread:
expected: RUNNABLE (4)
actual: ALIVE BLOCKED_ON_MONITOR_ENTER SUSPENDED (1049601)
START checkStatus for "thr1" (0x0x7ffd73d13498, suspended), check state: RUNNABLE
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: RUNNABLE
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: IN_OBJECT_WAIT
START checkStatus for "thr1" (0x0x7ffd73d13498, suspended), check state: IN_OBJECT_WAIT
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: IN_OBJECT_WAIT
----------System.err:(0/0)----------
----------rerun:(36/8372)*----------
The test task's JVM args are: -XX:StartFlightRecording=dumponexit=true
vmTestbase/nsk/jvmti/GetThreadState/thrstat002/TestDescription.java
Here's a snippet from the log file:
#section:main
----------messages:(4/253)----------
command: main -agentlib:thrstat002 nsk.jvmti.GetThreadState.thrstat002 5
reason: User specified action: run main/othervm/native -agentlib:thrstat002 nsk.jvmti.GetThreadState.thrstat002 5
Mode: othervm [/othervm specified]
elapsed time (seconds): 6.941
----------configuration:(0/0)----------
----------System.out:(33/1927)----------
[4.126s][info][jfr,startup] Started recording 1. No limit specified, using maxsize=250MB as default.
[4.126s][info][jfr,startup]
[4.126s][info][jfr,startup] Use jcmd 79159 JFR.dump name=1 filename=FILEPATH to copy recording data to file.
# Waiting time = 5 mins
thrstat002a.run before startingBarrier.unlock
thrstat002.meth after thr.start()
thrstat002a.run after startingBarrier.unlock
thrstat002a.run before blockingMonitor lock
thrstat002.meth after thr.startingBarrier.waitFor()
thrstat002.meth after checkStatus(STATUS_MONITOR,false)
thrstat002.meth after thr.suspend()
thrstat002.meth after checkStatus(STATUS_MONITOR,true)
thrstat002.meth after thr.resume()
thrstat002.meth after checkStatus(STATUS_MONITOR,false)
thrstat002a.run blockingMonitor locked
thrstat002a.run after blockingMonitor lock
thrstat002a.run after runningBarrier unlock
thrstat002a.run before endingMonitor unlock
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: BLOCKED_ON_MONITOR_ENTER
START checkStatus for "thr1" (0x0x7ffd73d13498, suspended), check state: BLOCKED_ON_MONITOR_ENTER
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: BLOCKED_ON_MONITOR_ENTER
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: RUNNABLE
Wrong thread "thr1" (0x0x7ffd73d13498) state:
expected: RUNNABLE (4)
actual: ALIVE BLOCKED_ON_MONITOR_ENTER (1025)
Wrong thread "thr1" (0x0x7ffd73d13498) state after SuspendThread:
expected: RUNNABLE (4)
actual: ALIVE BLOCKED_ON_MONITOR_ENTER SUSPENDED (1049601)
START checkStatus for "thr1" (0x0x7ffd73d13498, suspended), check state: RUNNABLE
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: RUNNABLE
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: IN_OBJECT_WAIT
START checkStatus for "thr1" (0x0x7ffd73d13498, suspended), check state: IN_OBJECT_WAIT
START checkStatus for "thr1" (0x0x7ffd73d13498), check state: IN_OBJECT_WAIT
----------System.err:(0/0)----------
----------rerun:(36/8372)*----------
The test task's JVM args are: -XX:StartFlightRecording=dumponexit=true