8229516: Thread.isInterrupted() always returns false after thread termination

Reviewed-by: dnsimon, sspitsyn, dcubed, alanb
This commit is contained in:
David Holmes 2019-11-03 18:02:29 -05:00
parent fd077ea9ae
commit 1d50b2761c
30 changed files with 106 additions and 264 deletions

View file

@ -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;
}
}