Update Thread.interrupted in JVMTI RawMonitorWait - #19844
Merged
Conversation
Contributor
Author
|
@hangshao0 requesting your review. |
ChengJin01
suggested changes
Jul 11, 2024
fengxue-IS
suggested changes
Jul 11, 2024
babsingh
force-pushed
the
main8
branch
3 times, most recently
from
July 16, 2024 18:02
766f04d to
bd32edf
Compare
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 <sbabneet@ca.ibm.com>
Contributor
|
jenkins test sanity.openjdk,extended.openjdk jdk23 |
Contributor
|
jenkins test sanity.openjdk,extended.openjdk alinux jdk23 |
Contributor
|
jenkins test sanity,extended amac jdk23 |
Contributor
|
The functional build failure is caused by adoptium/aqa-tests#5451 |
Contributor
|
jenkins test sanity,extended amac jdk23 |
Contributor
Author
|
Only known/unrelated failures are seen in the two failing PR builds. |
hangshao0
approved these changes
Jul 17, 2024
Contributor
|
Please create a PR for 0.47 branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JVMTI
GetThreadStateusesThread.interruptedto interpret thethread's state. If a thread is interrupted while waiting for
a monitor in JVMTI
RawMonitorWait, then it'sThread.interruptedfield needs to be updated. This allows JVMTI
GetThreadStatetoreturn the correct thread state.
Use
JVMTI_ERROR_INTERNAL(universal error) for the CRIU errorcase.
Fixes: #19498