comparison src/share/vm/runtime/mutexLocker.hpp @ 22797:f46871c6c063

8035663: Suspicious failure of test java/util/concurrent/Phaser/FickleRegister.java Reviewed-by: shade, coleenp
author dholmes
date Tue, 25 Nov 2014 21:00:21 -0500
parents 581e70386ec9
children b6a1bf5222c5
comparison
equal deleted inserted replaced
20714:c3933f52eeb3 22797:f46871c6c063
149 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations 149 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations
150 extern Mutex* JfrStream_lock; // protects JFR stream access 150 extern Mutex* JfrStream_lock; // protects JFR stream access
151 extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups 151 extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups
152 #endif 152 #endif
153 153
154 #ifndef SUPPORTS_NATIVE_CX8
155 extern Mutex* UnsafeJlong_lock; // provides Unsafe atomic updates to jlongs on platforms that don't support cx8
156 #endif
157
154 // A MutexLocker provides mutual exclusion with respect to a given mutex 158 // A MutexLocker provides mutual exclusion with respect to a given mutex
155 // for the scope which contains the locker. The lock is an OS lock, not 159 // for the scope which contains the locker. The lock is an OS lock, not
156 // an object lock, and the two do not interoperate. Do not use Mutex-based 160 // an object lock, and the two do not interoperate. Do not use Mutex-based
157 // locks to lock on Java objects, because they will not be respected if a 161 // locks to lock on Java objects, because they will not be respected if a
158 // that object is locked using the Java locking mechanism. 162 // that object is locked using the Java locking mechanism.