mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8230505: Replace JVM type comparisons to T_OBJECT and T_ARRAY with call to is_reference_type
Consistently use is_reference_type when comparing type for T_OBJECT or T_ARRAY. Co-authored-by: John Rose <john.r.rose@oracle.com> Reviewed-by: dlong, coleenp, hseigel
This commit is contained in:
parent
c080a4a4d5
commit
0c507f3180
67 changed files with 183 additions and 183 deletions
|
@ -1034,7 +1034,7 @@ C2V_VMENTRY_NULL(jobject, executeHotSpotNmethod, (JNIEnv* env, jobject, jobject
|
|||
|
||||
if (jap.get_ret_type() == T_VOID) {
|
||||
return NULL;
|
||||
} else if (jap.get_ret_type() == T_OBJECT || jap.get_ret_type() == T_ARRAY) {
|
||||
} else if (is_reference_type(jap.get_ret_type())) {
|
||||
return JNIHandles::make_local((oop) result.get_jobject());
|
||||
} else {
|
||||
jvalue *value = (jvalue *) result.get_value_addr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue