mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 21:35:25 +00:00
8369482: JVMTI + Loom: JDK-8368159 introduced safepoint poll in disallowed state
Co-authored-by: Patricio Chilano Mateo <pchilanomate@openjdk.org> Reviewed-by: sspitsyn, pchilanomate
This commit is contained in:
parent
be0e49b7e2
commit
5bf1bab5b3
@ -1694,7 +1694,7 @@ bool JvmtiExport::has_frame_pops(JavaThread* thread) {
|
||||
if (!can_post_frame_pop()) {
|
||||
return false;
|
||||
}
|
||||
JvmtiThreadState *state = get_jvmti_thread_state(thread);
|
||||
JvmtiThreadState *state = thread->jvmti_thread_state();
|
||||
if (state == nullptr) {
|
||||
return false;
|
||||
}
|
||||
@ -1713,7 +1713,7 @@ void JvmtiExport::continuation_yield_cleanup(JavaThread* thread, jint continuati
|
||||
}
|
||||
|
||||
assert(thread == JavaThread::current(), "must be");
|
||||
JvmtiThreadState *state = get_jvmti_thread_state(thread);
|
||||
JvmtiThreadState *state = thread->jvmti_thread_state();
|
||||
if (state == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1626,7 +1626,7 @@ static void invalidate_jvmti_stack(JavaThread* thread) {
|
||||
}
|
||||
|
||||
static void jvmti_yield_cleanup(JavaThread* thread, ContinuationWrapper& cont) {
|
||||
if (JvmtiExport::has_frame_pops(thread)) {
|
||||
if (!cont.entry()->is_virtual_thread() && JvmtiExport::has_frame_pops(thread)) {
|
||||
int num_frames = num_java_frames(cont);
|
||||
|
||||
ContinuationWrapper::SafepointOp so(Thread::current(), cont);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user