-
Bug
-
Resolution: Fixed
-
P3
-
21, 22
-
b21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8331598 | 21.0.5-oracle | Michael McMahon | P3 | Resolved | Fixed | b01 |
JDK-8331972 | 21.0.4-oracle | Michael McMahon | P3 | Resolved | Fixed | b05 |
JDK-8326967 | 21.0.4 | Aleksey Shipilev | P3 | Resolved | Fixed | b01 |
Consider a virtual thread mounted on carrier T1 that parks. If unparked at around the time that it may continue on T1 or may continue on a different carrier T2. When it continues on T1, it's possible for the notifyJvmtiMount to race with the notifyJvmtiUnmount on T2. This is examined to see if if notifyJvmtiUnmount should be sent before the virtual thread transitions to the PARKED state. This would mean the JVMTI unmount is done when the virtual thread is in the PARKING state, which should be okay although it risks being trapped in that state for a long time, esp. if the JDK specific JVMTI_EVENT_VIRTUAL_THREAD_UNMOUNT event is enabled and the callback takes a long time.
- backported by
-
JDK-8326967 notifyJvmtiMount before notifyJvmtiUnmount
-
- Resolved
-
-
JDK-8331598 notifyJvmtiMount before notifyJvmtiUnmount
-
- Resolved
-
-
JDK-8331972 notifyJvmtiMount before notifyJvmtiUnmount
-
- Resolved
-
- links to
-
Commit openjdk/jdk21u-dev/3eb5517b
-
Commit openjdk/jdk/c46a54e0
-
Review openjdk/jdk21u-dev/245
-
Review openjdk/jdk/16194
(2 links to)