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