From 64b64cce6028df62bf6ce7105f436ab2405ef534 Mon Sep 17 00:00:00 2001 From: Jack Lu Date: Fri, 27 Oct 2023 13:28:22 -0400 Subject: [PATCH] Remove redundant assertion to avoid acquiring VMAccess Removing the check prevents any incorrect referencing without VMAccess while GC is modifying the threadObject reference. Signed-off-by: Jack Lu --- runtime/j9vm/javanextvmi.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/j9vm/javanextvmi.cpp b/runtime/j9vm/javanextvmi.cpp index 13e6e21810a..3386dd61d6b 100644 --- a/runtime/j9vm/javanextvmi.cpp +++ b/runtime/j9vm/javanextvmi.cpp @@ -557,7 +557,6 @@ JVM_VirtualThreadHideFrames(JNIEnv *env, jobject vthread, jboolean hide) { J9VMThread *currentThread = (J9VMThread *)env; - Assert_SC_true(IS_JAVA_LANG_VIRTUALTHREAD(currentThread, currentThread->threadObject)); if (hide) { Assert_SC_true(J9_ARE_NO_BITS_SET(currentThread->privateFlags, J9_PRIVATE_FLAGS_VIRTUAL_THREAD_HIDDEN_FRAMES)); } else {