Skip to content

(0.47) Update Thread.interrupted in JVMTI RawMonitorWait #19864

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

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

babsingh
Copy link
Contributor

JVMTI GetThreadState uses Thread.interrupted to interpret the
thread's state. If a thread is interrupted while waiting for
a monitor in JVMTI RawMonitorWait, then it's Thread.interrupted
field needs to be updated. This allows JVMTI GetThreadState to
return the correct thread state.

Use JVMTI_ERROR_INTERNAL (universal error) for the CRIU error
case.

Fixes: #19498

JVMTI GetThreadState uses Thread.interrupted to interpret the
thread's state. If a thread is interrupted while waiting for
a monitor in JVMTI RawMonitorWait, then it's Thread.interrupted
field needs to be updated. This allows JVMTI GetThreadState to
return the correct thread state.

Use JVMTI_ERROR_INTERNAL (universal error) for the CRIU error
case.

Signed-off-by: Babneet Singh <[email protected]>
@babsingh babsingh requested a review from hangshao0 July 17, 2024 14:49
@babsingh
Copy link
Contributor Author

This PR ports #19844 to the v0.47.0-release branch.

@hangshao0 hangshao0 merged commit cc3d0b3 into eclipse-openj9:v0.47.0-release Jul 17, 2024
2 checks passed
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