Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/synchronizer.cpp @ 14318:1020b892787b
Merge
author | hseigel |
---|---|
date | Sun, 02 Feb 2014 15:31:40 -0500 |
parents | 63a4eb8bcd23 |
children | e7d8cbe4db3b |
comparison
equal
deleted
inserted
replaced
14317:b59507f713e0 | 14318:1020b892787b |
---|---|
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") ; |