mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8255563: Missing NULL checks after JDK-8233624
Reviewed-by: kvn
This commit is contained in:
parent
e730e8b691
commit
5dfb42fc68
1 changed files with 2 additions and 0 deletions
|
@ -2295,6 +2295,7 @@ C2V_VMENTRY_NULL(jlongArray, registerNativeMethods, (JNIEnv* env, jobject, jclas
|
|||
// 1) Try JNI short style
|
||||
stringStream st;
|
||||
char* pure_name = NativeLookup::pure_jni_name(method);
|
||||
guarantee(pure_name != NULL, "Illegal native method name encountered");
|
||||
os::print_jni_name_prefix_on(&st, args_size);
|
||||
st.print_raw(pure_name);
|
||||
os::print_jni_name_suffix_on(&st, args_size);
|
||||
|
@ -2305,6 +2306,7 @@ C2V_VMENTRY_NULL(jlongArray, registerNativeMethods, (JNIEnv* env, jobject, jclas
|
|||
// 2) Try JNI long style
|
||||
st.reset();
|
||||
char* long_name = NativeLookup::long_jni_name(method);
|
||||
guarantee(long_name != NULL, "Illegal native method name encountered");
|
||||
os::print_jni_name_prefix_on(&st, args_size);
|
||||
st.print_raw(pure_name);
|
||||
st.print_raw(long_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue