Lines Matching defs:lock
149 void assert_locked_or_safepoint(const Monitor * lock) {
150 // check if this thread owns the lock (common case)
152 assert(lock != NULL, "Need non-NULL lock");
153 if (lock->owned_by_self()) return;
158 if (op != NULL && op->calling_thread() == lock->owner()) return;
159 fatal(err_msg("must own lock %s", lock->name()));
163 void assert_lock_strong(const Monitor * lock) {
165 assert(lock != NULL, "Need non-NULL lock");
166 if (lock->owned_by_self()) return;
167 fatal(err_msg("must own lock %s", lock->name()));
179 def(tty_lock , Mutex , event, true ); // allow to lock in VM
235 def(FullGCALot_lock , Mutex , leaf, false); // a lock to make FullGCALot MT safe
260 // used in CMS GC for locking PLL lock
295 _mutex->lock();