comparison src/share/vm/runtime/synchronizer.cpp @ 14314:2c95095271e9

Merge
author ehelin
date Thu, 30 Jan 2014 14:01:45 +0100
parents 63a4eb8bcd23
children e7d8cbe4db3b
comparison
equal deleted inserted replaced
14302:1fb56cbac3a1 14314:2c95095271e9
735 assert(mark->is_neutral(), "sanity check"); 735 assert(mark->is_neutral(), "sanity check");
736 return false; 736 return false;
737 } 737 }
738 738
739 // Be aware of this method could revoke bias of the lock object. 739 // Be aware of this method could revoke bias of the lock object.
740 // This method querys the ownership of the lock handle specified by 'h_obj'. 740 // This method queries the ownership of the lock handle specified by 'h_obj'.
741 // If the current thread owns the lock, it returns owner_self. If no 741 // If the current thread owns the lock, it returns owner_self. If no
742 // thread owns the lock, it returns owner_none. Otherwise, it will return 742 // thread owns the lock, it returns owner_none. Otherwise, it will return
743 // ower_other. 743 // owner_other.
744 ObjectSynchronizer::LockOwnership ObjectSynchronizer::query_lock_ownership 744 ObjectSynchronizer::LockOwnership ObjectSynchronizer::query_lock_ownership
745 (JavaThread *self, Handle h_obj) { 745 (JavaThread *self, Handle h_obj) {
746 // The caller must beware this method can revoke bias, and 746 // The caller must beware this method can revoke bias, and
747 // revocation can result in a safepoint. 747 // revocation can result in a safepoint.
748 assert (!SafepointSynchronize::is_at_safepoint(), "invariant") ; 748 assert (!SafepointSynchronize::is_at_safepoint(), "invariant") ;