hotspot/src/share/vm/oops/instanceRefKlass.cpp
changeset 7446 9193aa209467
parent 7397 5b173b4ca846
child 7450 e44c68293be8
equal deleted inserted replaced
7445:57d387675180 7446:9193aa209467
   455       }
   455       }
   456     }
   456     }
   457   }
   457   }
   458 }
   458 }
   459 
   459 
       
   460 bool instanceRefKlass::owns_pending_list_lock(JavaThread* thread) {
       
   461   Handle h_lock(thread, java_lang_ref_Reference::pending_list_lock());
       
   462   return ObjectSynchronizer::current_thread_holds_lock(thread, h_lock);
       
   463 }
       
   464 
   460 void instanceRefKlass::acquire_pending_list_lock(BasicLock *pending_list_basic_lock) {
   465 void instanceRefKlass::acquire_pending_list_lock(BasicLock *pending_list_basic_lock) {
   461   // we may enter this with pending exception set
   466   // we may enter this with pending exception set
   462   PRESERVE_EXCEPTION_MARK;  // exceptions are never thrown, needed for TRAPS argument
   467   PRESERVE_EXCEPTION_MARK;  // exceptions are never thrown, needed for TRAPS argument
   463   Handle h_lock(THREAD, java_lang_ref_Reference::pending_list_lock());
   468   Handle h_lock(THREAD, java_lang_ref_Reference::pending_list_lock());
   464   ObjectSynchronizer::fast_enter(h_lock, pending_list_basic_lock, false, THREAD);
   469   ObjectSynchronizer::fast_enter(h_lock, pending_list_basic_lock, false, THREAD);