src/hotspot/share/runtime/jniHandles.inline.hpp
changeset 50803 45c1fde86050
parent 50599 ecc2af326b5f
child 53060 7aa1a37b04a2
equal deleted inserted replaced
50802:fa380b3b2b7d 50803:45c1fde86050
    55   assert(!current_thread_in_native(), "must not be in native");
    55   assert(!current_thread_in_native(), "must not be in native");
    56   oop result;
    56   oop result;
    57   if (is_jweak(handle)) {       // Unlikely
    57   if (is_jweak(handle)) {       // Unlikely
    58     result = resolve_jweak(handle);
    58     result = resolve_jweak(handle);
    59   } else {
    59   } else {
    60     result = NativeAccess<IN_CONCURRENT_ROOT>::oop_load(jobject_ptr(handle));
    60     result = NativeAccess<>::oop_load(jobject_ptr(handle));
    61     // Construction of jobjects canonicalize a null value into a null
    61     // Construction of jobjects canonicalize a null value into a null
    62     // jobject, so for non-jweak the pointee should never be null.
    62     // jobject, so for non-jweak the pointee should never be null.
    63     assert(external_guard || result != NULL, "Invalid JNI handle");
    63     assert(external_guard || result != NULL, "Invalid JNI handle");
    64   }
    64   }
    65   return result;
    65   return result;