Skip to content
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

[0.42] Virtual Thread Support #18494

Merged
merged 3 commits into from
Nov 20, 2023

Conversation

babsingh and others added 3 commits November 20, 2023 11:48
java.lang.Thread.container is added in vmconstantpool.xml.

Accessing java.lang.Thread.container as a known field simplifies
and fixes the incorrect error handling in getVirtualThreadState.

Signed-off-by: Babneet Singh <[email protected]>
This will simplify future changes for virtual thread support.

Signed-off-by: Babneet Singh <[email protected]>
J9VMThread->threadObject can be modified between
JVM_VirtualThreadHideFrames's first invocation with hide=true and
second invocation with hide=false. Synchronization to prevent JVMTI
operations is acquired between these two invocations. This prevents
JVMTI functions to see an unstable J9VMThread->threadObject.

Related: eclipse-openj9#17865
Related: eclipse-openj9#17869
Related: eclipse-openj9#18370

Co-authored-by: Jack Lu <[email protected]>
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants