equal
deleted
inserted
replaced
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; |