8379412: JfrJavaSupport::new_string should return early if pending exception

Reviewed-by: mgronlun
This commit is contained in:
Joel Sikström 2026-03-10 12:37:39 +00:00
parent 6aae92e6f1
commit f95e8136b1

View File

@ -228,7 +228,7 @@ void JfrJavaSupport::new_object_global_ref(JfrJavaArguments* args, TRAPS) {
jstring JfrJavaSupport::new_string(const char* c_str, TRAPS) {
assert(c_str != nullptr, "invariant");
DEBUG_ONLY(check_java_thread_in_vm(THREAD));
const oop result = java_lang_String::create_oop_from_str(c_str, THREAD);
const oop result = java_lang_String::create_oop_from_str(c_str, CHECK_NULL);
return (jstring)local_jni_handle(result, THREAD);
}