From d3f7e3b41779427a0765bdd40a3627cb0490cbce Mon Sep 17 00:00:00 2001 From: Serguei Spitsyn Date: Mon, 12 Sep 2022 21:56:05 +0000 Subject: [PATCH] 8293339: vm/jvmti/StopThread/stop001/stop00103 crashes with SIGSEGV in Continuation::is_continuation_mounted Reviewed-by: cjplummer, lmesnik --- src/hotspot/share/prims/jvmtiEnv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hotspot/share/prims/jvmtiEnv.cpp b/src/hotspot/share/prims/jvmtiEnv.cpp index a9efe01c92e..f5e9176230a 100644 --- a/src/hotspot/share/prims/jvmtiEnv.cpp +++ b/src/hotspot/share/prims/jvmtiEnv.cpp @@ -1182,6 +1182,8 @@ JvmtiEnv::ResumeAllVirtualThreads(jint except_count, const jthread* except_list) jvmtiError JvmtiEnv::StopThread(jthread thread, jobject exception) { JavaThread* current_thread = JavaThread::current(); + + JvmtiVTMSTransitionDisabler disabler; ThreadsListHandle tlh(current_thread); JavaThread* java_thread = NULL; oop thread_oop = NULL;