mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-25 01:30:10 +00:00
8322538: remove fatal from JVM_VirtualThread functions for !INCLUDE_JVMTI
Reviewed-by: dholmes, alanb
This commit is contained in:
parent
05745e3f1d
commit
aff659aaf7
@ -3933,8 +3933,6 @@ JVM_ENTRY(void, JVM_VirtualThreadStart(JNIEnv* env, jobject vthread))
|
||||
// set VTMS transition bit value in JavaThread and java.lang.VirtualThread object
|
||||
JvmtiVTMSTransitionDisabler::set_is_in_VTMS_transition(thread, vthread, false);
|
||||
}
|
||||
#else
|
||||
fatal("Should only be called with JVMTI enabled");
|
||||
#endif
|
||||
JVM_END
|
||||
|
||||
@ -3950,8 +3948,6 @@ JVM_ENTRY(void, JVM_VirtualThreadEnd(JNIEnv* env, jobject vthread))
|
||||
// set VTMS transition bit value in JavaThread and java.lang.VirtualThread object
|
||||
JvmtiVTMSTransitionDisabler::set_is_in_VTMS_transition(thread, vthread, true);
|
||||
}
|
||||
#else
|
||||
fatal("Should only be called with JVMTI enabled");
|
||||
#endif
|
||||
JVM_END
|
||||
|
||||
@ -3969,8 +3965,6 @@ JVM_ENTRY(void, JVM_VirtualThreadMount(JNIEnv* env, jobject vthread, jboolean hi
|
||||
// set VTMS transition bit value in JavaThread and java.lang.VirtualThread object
|
||||
JvmtiVTMSTransitionDisabler::set_is_in_VTMS_transition(thread, vthread, hide);
|
||||
}
|
||||
#else
|
||||
fatal("Should only be called with JVMTI enabled");
|
||||
#endif
|
||||
JVM_END
|
||||
|
||||
@ -3988,8 +3982,6 @@ JVM_ENTRY(void, JVM_VirtualThreadUnmount(JNIEnv* env, jobject vthread, jboolean
|
||||
// set VTMS transition bit value in JavaThread and java.lang.VirtualThread object
|
||||
JvmtiVTMSTransitionDisabler::set_is_in_VTMS_transition(thread, vthread, hide);
|
||||
}
|
||||
#else
|
||||
fatal("Should only be called with JVMTI enabled");
|
||||
#endif
|
||||
JVM_END
|
||||
|
||||
@ -4003,8 +3995,6 @@ JVM_ENTRY(void, JVM_VirtualThreadHideFrames(JNIEnv* env, jobject vthread, jboole
|
||||
assert(!thread->is_in_VTMS_transition(), "sanity check");
|
||||
assert(thread->is_in_tmp_VTMS_transition() != (bool)hide, "sanity check");
|
||||
thread->toggle_is_in_tmp_VTMS_transition();
|
||||
#else
|
||||
fatal("Should only be called with JVMTI enabled");
|
||||
#endif
|
||||
JVM_END
|
||||
|
||||
@ -4019,8 +4009,6 @@ JVM_ENTRY(void, JVM_VirtualThreadDisableSuspend(JNIEnv* env, jobject vthread, jb
|
||||
assert(thread->is_disable_suspend() != (bool)enter,
|
||||
"nested or unbalanced monitor enter/exit is not allowed");
|
||||
thread->toggle_is_disable_suspend();
|
||||
#else
|
||||
fatal("Should only be called with JVMTI enabled");
|
||||
#endif
|
||||
JVM_END
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user