The following test failed in the JDK23 CI:
serviceability/jvmti/vthread/VThreadEventTest/VThreadEventTest.java
Here's a snippet from the log file:
#section:main
----------messages:(6/476)----------
command: main -Djdk.virtualThreadScheduler.parallelism=9 -Djdk.attach.allowAttachSelf=true -XX:+EnableDynamicAgentLoading VThreadEventTest attach
reason: User specified action: run main/othervm/native -Djdk.virtualThreadScheduler.parallelism=9 -Djdk.attach.allowAttachSelf=true -XX:+EnableDynamicAgentLoading VThreadEventTest attach
started: Fri Dec 15 08:55:40 UTC 2023
Mode: othervm [/othervm specified]
finished: Fri Dec 15 08:55:41 UTC 2023
elapsed time (seconds): 1.229
----------configuration:(0/0)----------
----------System.out:(36/924)----------
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test2 vthread started
test2 vthread started
test2 vthread started
test1 vthread started
test3 vthread started
test2 vthread started
test3 vthread started
test3 vthread started
test3 vthread started
DBG: state: RUNNABLE
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
Agent_OnAttach started
vthread events enabled
ThreadEnd cnt: 18 (expected: 18)
ThreadMount cnt: 13 (expected: 14)
ThreadUnmount cnt: 21 (expected: 22)
FAILED: unexpected count of ThreadMount events
FAILED: unexpected count of ThreadUnmount events
----------System.err:(11/645)----------
java.lang.RuntimeException: FAILED: event count is wrong
at VThreadEventTest.main(VThreadEventTest.java:205)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException: FAILED: event count is wrong
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: FAILED: event count is wrong
----------rerun:(40/6598)*----------
serviceability/jvmti/vthread/VThreadEventTest/VThreadEventTest.java
Here's a snippet from the log file:
#section:main
----------messages:(6/476)----------
command: main -Djdk.virtualThreadScheduler.parallelism=9 -Djdk.attach.allowAttachSelf=true -XX:+EnableDynamicAgentLoading VThreadEventTest attach
reason: User specified action: run main/othervm/native -Djdk.virtualThreadScheduler.parallelism=9 -Djdk.attach.allowAttachSelf=true -XX:+EnableDynamicAgentLoading VThreadEventTest attach
started: Fri Dec 15 08:55:40 UTC 2023
Mode: othervm [/othervm specified]
finished: Fri Dec 15 08:55:41 UTC 2023
elapsed time (seconds): 1.229
----------configuration:(0/0)----------
----------System.out:(36/924)----------
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test1 vthread started
test2 vthread started
test2 vthread started
test2 vthread started
test1 vthread started
test3 vthread started
test2 vthread started
test3 vthread started
test3 vthread started
test3 vthread started
DBG: state: RUNNABLE
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
DBG: state: TIMED_WAITING
Agent_OnAttach started
vthread events enabled
ThreadEnd cnt: 18 (expected: 18)
ThreadMount cnt: 13 (expected: 14)
ThreadUnmount cnt: 21 (expected: 22)
FAILED: unexpected count of ThreadMount events
FAILED: unexpected count of ThreadUnmount events
----------System.err:(11/645)----------
java.lang.RuntimeException: FAILED: event count is wrong
at VThreadEventTest.main(VThreadEventTest.java:205)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException: FAILED: event count is wrong
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: FAILED: event count is wrong
----------rerun:(40/6598)*----------
- relates to
-
JDK-8343119 Several tests failures run with TEST_THREAD_FACTORY=Virtual
-
- Open
-