-
Bug
-
Resolution: Fixed
-
P3
-
21
-
b02
-
x86_64
-
linux, os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8311326 | 21.0.1 | Serguei Spitsyn | P3 | Resolved | Fixed | b02 |
JDK-8310594 | 21 | Serguei Spitsyn | P3 | Resolved | Fixed | b29 |
serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java#default
Here's a snippet from the log file:
#section:main
----------messages:(6/419)----------
command: main -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -agentlib:SuspendResume1 SuspendResume1
reason: User specified action: run main/othervm/native/timeout=600 -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -agentlib:SuspendResume1 SuspendResume1
started: Wed Jun 07 13:54:37 GMT 2023
Mode: othervm [/othervm specified]
finished: Wed Jun 07 13:55:06 GMT 2023
elapsed time (seconds): 28.409
----------configuration:(0/0)----------
----------System.out:(54/2938)----------
Agent init started
Agent init finished
## Java: runIt: Starting threads
## Java: started thread: TestedThread0
## Java: started thread: TestedThread1
## Java: started thread: TestedThread2
## Java: started thread: TestedThread3
## Java: started thread: TestedThread4
## Java: started thread: TestedThread5
## Java: started thread: TestedThread6
## Java: started thread: TestedThread7
## Java: started thread: TestedThread8
## Java: started thread: TestedThread9
## Java: started thread: TestedThread10
## Java: started thread: TestedThread11
## Java: started thread: TestedThread12
## Java: started thread: TestedThread13
## Java: started thread: TestedThread14
## Java: started thread: TestedThread15
## Java: started thread: TestedThread16
## Java: started thread: TestedThread17
## Java: started thread: TestedThread18
## Java: started thread: TestedThread19
## Java: runIt: testing Suspend/Resume
## TestSuspendResume: Test carrier threads
## Agent: thread[0] 0x7ff5d2faf9d8 ForkJoinPool-1-worker-1: state after suspend: ALIVE WAITING WAITING_INDEFINITELY PARKED SUSPENDED (1049233)
## Agent: thread[0] 0x7ff5d2faf9d8 ForkJoinPool-1-worker-1: state after resume: ALIVE WAITING WAITING_INDEFINITELY PARKED (657)
## Agent: thread[1] 0x7ff5d2faf9e8 ForkJoinPool-1-worker-2: state after suspend: ALIVE WAITING WAITING_INDEFINITELY PARKED SUSPENDED (1049233)
## Agent: thread[1] 0x7ff5d2faf9e8 ForkJoinPool-1-worker-2: state after resume: ALIVE RUNNABLE (5)
## Agent: thread[2] 0x7ff5d2faf9f0 ForkJoinPool-1-worker-3: state after suspend: ALIVE WAITING WAITING_INDEFINITELY (145)
## Agent: FAILED: SuspendThread did not turn on SUSPENDED flag for carrier thread:
# state: ALIVE WAITING WAITING_INDEFINITELY (145)
## Agent: SuspendThread: virtual thread of carrier thread has state: ALIVE RUNNABLE (5)
FATAL ERROR in native method: check_resumed_state: expected SUSPENDED flag in thread state
at SuspendResume1.TestSuspendResume(Native Method)
at SuspendResume1.test_vthreads(SuspendResume1.java:115)
at SuspendResume1.runIt(SuspendResume1.java:91)
at SuspendResume1.run(SuspendResume1.java:82)
at SuspendResume1.main(SuspendResume1.java:75)
at java.lang.invoke.LambdaForm$DMH/0x0000000801002000.invokeStatic(java.base@21-ea/LambdaForm$DMH)
at java.lang.invoke.LambdaForm$MH/0x0000000801003400.invoke(java.base@21-ea/LambdaForm$MH)
at java.lang.invoke.Invokers$Holder.invokeExact_MT(java.base@21-ea/Invokers$Holder)
at jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(java.base@21-ea/DirectMethodHandleAccessor.java:154)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(java.base@21-ea/DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke(java.base@21-ea/Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.lang.Thread.runWith(java.base@21-ea/Thread.java:1596)
at java.lang.Thread.run(java.base@21-ea/Thread.java:1583)
----------System.err:(0/0)----------
----------rerun:(35/7886)*----------
- backported by
-
JDK-8310594 [REDO] JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING
- Resolved
-
JDK-8311326 [REDO] JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING
- Resolved
- relates to
-
JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING
- Resolved
-
JDK-8310066 Improve test coverage for JVMTI GetThreadState on carrier and mounted vthread
- Resolved
- links to
-
Commit openjdk/jdk21/f8a38eec
-
Commit openjdk/jdk/f91e9ba7
-
Review openjdk/jdk21/43
-
Review openjdk/jdk/14366