Lines Matching refs:mutex
29 #include "runtime/mutex.hpp"
140 // A MutexLocker provides mutual exclusion with respect to a given mutex
158 char *lock_name(Mutex *mutex);
164 MutexLocker(Monitor * mutex) {
165 assert(mutex->rank() != Mutex::special,
166 "Special ranked mutex should only use MutexLockerEx");
167 _mutex = mutex;
172 MutexLocker(Monitor * mutex, Thread *thread) {
173 assert(mutex->rank() != Mutex::special,
174 "Special ranked mutex should only use MutexLockerEx");
175 _mutex = mutex;
205 MutexLockerEx(Monitor * mutex, bool no_safepoint_check = !Mutex::_no_safepoint_check_flag) {
206 _mutex = mutex;
208 assert(mutex->rank() > Mutex::special || no_safepoint_check,
274 // A GCMutexLocker is usually initialized with a mutex that is
277 // GC's. Thus, it must acquire the mutex if GC is not in progress, but not
278 // if GC is in progress (since the mutex is already held on its behalf.)
285 GCMutexLocker(Monitor * mutex);
292 // entered mutex for the scope which contains the unlocker.
299 MutexUnlocker(Monitor * mutex) {
300 _mutex = mutex;
310 // entered mutex for the scope which contains the unlocker.
318 MutexUnlockerEx(Monitor * mutex, bool no_safepoint_check = !Mutex::_no_safepoint_check_flag) {
319 _mutex = mutex;
348 VerifyMutexLocker(Monitor * mutex) {
349 _mutex = mutex;
350 _reentrant = mutex->owned_by_self();