equal
deleted
inserted
replaced
1102 |
1102 |
1103 // Invoke the method. Result is returned as oop. |
1103 // Invoke the method. Result is returned as oop. |
1104 JavaCalls::call(result, method, &java_args, CHECK); |
1104 JavaCalls::call(result, method, &java_args, CHECK); |
1105 |
1105 |
1106 // Convert result |
1106 // Convert result |
1107 if (result->get_type() == T_OBJECT || result->get_type() == T_ARRAY) { |
1107 if (is_reference_type(result->get_type())) { |
1108 result->set_jobject(JNIHandles::make_local(env, (oop) result->get_jobject())); |
1108 result->set_jobject(JNIHandles::make_local(env, (oop) result->get_jobject())); |
1109 } |
1109 } |
1110 } |
1110 } |
1111 |
1111 |
1112 |
1112 |
1165 |
1165 |
1166 // Invoke the method. Result is returned as oop. |
1166 // Invoke the method. Result is returned as oop. |
1167 JavaCalls::call(result, method, &java_args, CHECK); |
1167 JavaCalls::call(result, method, &java_args, CHECK); |
1168 |
1168 |
1169 // Convert result |
1169 // Convert result |
1170 if (result->get_type() == T_OBJECT || result->get_type() == T_ARRAY) { |
1170 if (is_reference_type(result->get_type())) { |
1171 result->set_jobject(JNIHandles::make_local(env, (oop) result->get_jobject())); |
1171 result->set_jobject(JNIHandles::make_local(env, (oop) result->get_jobject())); |
1172 } |
1172 } |
1173 } |
1173 } |
1174 |
1174 |
1175 |
1175 |