8293339: vm/jvmti/StopThread/stop001/stop00103 crashes with SIGSEGV in Continuation::is_continuation_mounted

Reviewed-by: cjplummer, lmesnik
This commit is contained in:
Serguei Spitsyn 2022-09-12 21:56:05 +00:00
parent 524af94937
commit d3f7e3b417

View file

@ -1182,6 +1182,8 @@ JvmtiEnv::ResumeAllVirtualThreads(jint except_count, const jthread* except_list)
jvmtiError jvmtiError
JvmtiEnv::StopThread(jthread thread, jobject exception) { JvmtiEnv::StopThread(jthread thread, jobject exception) {
JavaThread* current_thread = JavaThread::current(); JavaThread* current_thread = JavaThread::current();
JvmtiVTMSTransitionDisabler disabler;
ThreadsListHandle tlh(current_thread); ThreadsListHandle tlh(current_thread);
JavaThread* java_thread = NULL; JavaThread* java_thread = NULL;
oop thread_oop = NULL; oop thread_oop = NULL;