mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-13 17:33:10 +00:00
8379412: JfrJavaSupport::new_string should return early if pending exception
Reviewed-by: mgronlun
This commit is contained in:
parent
6aae92e6f1
commit
f95e8136b1
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user