mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8229516: Thread.isInterrupted() always returns false after thread termination
Reviewed-by: dnsimon, sspitsyn, dcubed, alanb
This commit is contained in:
parent
fd077ea9ae
commit
1d50b2761c
30 changed files with 106 additions and 264 deletions
|
@ -1214,8 +1214,7 @@ VM_GetMultipleStackTraces::fill_frames(jthread jt, JavaThread *thr, oop thread_o
|
|||
if (jts == _thread_in_native) {
|
||||
state |= JVMTI_THREAD_STATE_IN_NATIVE;
|
||||
}
|
||||
OSThread* osThread = thr->osthread();
|
||||
if (osThread != NULL && osThread->interrupted()) {
|
||||
if (thr->is_interrupted(false)) {
|
||||
state |= JVMTI_THREAD_STATE_INTERRUPTED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue