src/hotspot/share/runtime/jniHandles.cpp
changeset 53060 7aa1a37b04a2
parent 53057 c7ab0761ef88
child 53075 747d29313e5a
equal deleted inserted replaced
53059:041f1cbdae3e 53060:7aa1a37b04a2
   150 // treated as NULL (though a deleted and later reallocated handle
   150 // treated as NULL (though a deleted and later reallocated handle
   151 // isn't detected).
   151 // isn't detected).
   152 oop JNIHandles::resolve_external_guard(jobject handle) {
   152 oop JNIHandles::resolve_external_guard(jobject handle) {
   153   oop result = NULL;
   153   oop result = NULL;
   154   if (handle != NULL) {
   154   if (handle != NULL) {
   155     result = resolve_impl<true /* external_guard */ >(handle);
   155     result = resolve_impl<0 /* decorators */, true /* external_guard */>(handle);
   156   }
   156   }
   157   return result;
   157   return result;
   158 }
       
   159 
       
   160 oop JNIHandles::resolve_jweak(jweak handle) {
       
   161   assert(handle != NULL, "precondition");
       
   162   assert(is_jweak(handle), "precondition");
       
   163   return NativeAccess<ON_PHANTOM_OOP_REF>::oop_load(jweak_ptr(handle));
       
   164 }
   158 }
   165 
   159 
   166 bool JNIHandles::is_global_weak_cleared(jweak handle) {
   160 bool JNIHandles::is_global_weak_cleared(jweak handle) {
   167   assert(handle != NULL, "precondition");
   161   assert(handle != NULL, "precondition");
   168   assert(is_jweak(handle), "not a weak handle");
   162   assert(is_jweak(handle), "not a weak handle");