-
Notifications
You must be signed in to change notification settings - Fork 729
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
Add JVMTI synchronization in JVM_VirtualThreadHideFrames #18453
Conversation
@fengxue-IS @tajila Requesting your review. |
8ef09a6
to
d5df8c0
Compare
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]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
jenkins test sanity,extended.openjdk zlinux jdk21 |
Only known failures are seen in the builds, which are unrelated to this PR: |
@tajila PR builds look good. Requesting your review. |
@babsingh You'll need to triple deliver to 0.42 and 0.43 |
J9VMThread->threadObject
can be modified betweenJVM_VirtualThreadHideFrames
's first invocation withhide=true
andsecond invocation with
hide=false
. Synchronization to prevent JVMTIoperations is acquired between these two invocations. This prevents
JVMTI functions to see an unstable
J9VMThread->threadObject
.Related: #17865
Related: #17869
Related: #18370