-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jdk22 serviceability jvmti GetThreadStateMountedTest: Fatal error in JVMTI SuspendThread #18810
Comments
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Feb 13, 2024
New behaviour was noticed in JTREG GetThreadStateMountedTest. An unmounted carrier thread is considered implicitly parked, and all other bits except ALIVE and SUSPENDED are removed from the bitmask. Related: eclipse-openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Feb 15, 2024
JVMTI InterruptThread needs to invoke j.l.VirtualThread.interrupt() to interrupt a virtual thread as per the RI. Related: eclipse-openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Feb 27, 2024
In JDK19+, multiple thread objects can be associated to a J9VMThread: a virtual thread and its carrier thread. If a virtual thread is mounted, then the carrier thread is unmounted and vice-versa. In such cases, J9VMThread's state should not be used to determine if a thread object is interrupted. Instead, Thread.interrupted is used to determine if a thread object is interrupted. If a mounted thread is suspended, only set Thread.interrupted to TRUE and do not wake/interrupt the thread. This behaviour is expected in GetThreadStateMountedTest, which is a test added for virtual threads in JDK22. These changes are only added for virtual threads in JDK19+. Related: eclipse-openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Feb 28, 2024
In JDK19+, multiple thread objects can be associated to a J9VMThread: a virtual thread and its carrier thread. If a virtual thread is mounted, then the carrier thread is unmounted and vice-versa. In such cases, J9VMThread's state should not be used to determine if a thread object is interrupted. Instead, Thread.interrupted is used to determine if a thread object is interrupted. If a mounted thread is suspended, only set Thread.interrupted to TRUE and do not wake/interrupt the thread. This behaviour is expected in GetThreadStateMountedTest, which is a test added for virtual threads in JDK22. These changes are only added for virtual threads in JDK19+. Related: eclipse-openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/aqa-tests
that referenced
this issue
Feb 29, 2024
Depends on eclipse-openj9/openj9#18989 Closes: eclipse-openj9/openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
smlambert
pushed a commit
to adoptium/aqa-tests
that referenced
this issue
Mar 1, 2024
Depends on eclipse-openj9/openj9#18989 Closes: eclipse-openj9/openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
babsingh
added a commit
to babsingh/openj9
that referenced
this issue
Mar 26, 2024
In JDK19+, multiple thread objects can be associated to a J9VMThread: a virtual thread and its carrier thread. If a virtual thread is mounted, then the carrier thread is unmounted and vice-versa. In such cases, J9VMThread's state should not be used to determine if a thread object is interrupted. Instead, Thread.interrupted is used to determine if a thread object is interrupted. If a mounted thread is suspended, only set Thread.interrupted to TRUE and do not wake/interrupt the thread. This behaviour is expected in GetThreadStateMountedTest, which is a test added for virtual threads in JDK22. These changes are only added for virtual threads in JDK19+. Related: eclipse-openj9#18810 Signed-off-by: Babneet Singh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://openj9-jenkins.osuosl.org/job/Test_openjdk22_j9_extended.openjdk_aarch64_linux_Personal/1
serviceability_jvmti_j9_0
serviceability_jvmti_j9_1
serviceability/jvmti/vthread/GetThreadStateMountedTest/GetThreadStateMountedTest.java
The text was updated successfully, but these errors were encountered: