Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hotspot/share/prims/jvmtiExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/continuationFreezeThaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down