Skip to content

Commit

Permalink
Remove redundant assertion to avoid acquiring VMAccess
Browse files Browse the repository at this point in the history
Removing the check prevents any incorrect referencing without VMAccess
while GC is modifying the threadObject reference.

Signed-off-by: Jack Lu <[email protected]>
  • Loading branch information
fengxue-IS committed Oct 27, 2023
1 parent df535b9 commit 64b64cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtime/j9vm/javanextvmi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 64b64cc

Please sign in to comment.