comparison src/share/vm/runtime/mutexLocker.hpp @ 12106:739c309fd729

8023457: Event based tracing framework needs a mutex for thread groups Reviewed-by: acorn, sla
author mgronlun
date Fri, 23 Aug 2013 10:36:34 +0200
parents 6337ca4dcad8
children b2e698d2276c e2722a66aba7
comparison
equal deleted inserted replaced
12105:817e46dd5864 12106:739c309fd729
135 // tracker data structures 135 // tracker data structures
136 extern Mutex* HotCardCache_lock; // protects the hot card cache 136 extern Mutex* HotCardCache_lock; // protects the hot card cache
137 137
138 extern Mutex* Management_lock; // a lock used to serialize JVM management 138 extern Mutex* Management_lock; // a lock used to serialize JVM management
139 extern Monitor* Service_lock; // a lock used for service thread operation 139 extern Monitor* Service_lock; // a lock used for service thread operation
140 extern Mutex* Stacktrace_lock; // used to guard access to the stacktrace table 140 extern Monitor* PeriodicTask_lock; // protects the periodic task structure
141 141
142 extern Monitor* JfrQuery_lock; // protects JFR use 142 #ifdef INCLUDE_TRACE
143 extern Mutex* JfrStacktrace_lock; // used to guard access to the JFR stacktrace table
143 extern Monitor* JfrMsg_lock; // protects JFR messaging 144 extern Monitor* JfrMsg_lock; // protects JFR messaging
144 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations 145 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations
145 extern Mutex* JfrStream_lock; // protects JFR stream access 146 extern Mutex* JfrStream_lock; // protects JFR stream access
146 extern Monitor* PeriodicTask_lock; // protects the periodic task structure 147 extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups
148 #endif
147 149
148 // A MutexLocker provides mutual exclusion with respect to a given mutex 150 // A MutexLocker provides mutual exclusion with respect to a given mutex
149 // for the scope which contains the locker. The lock is an OS lock, not 151 // for the scope which contains the locker. The lock is an OS lock, not
150 // an object lock, and the two do not interoperate. Do not use Mutex-based 152 // an object lock, and the two do not interoperate. Do not use Mutex-based
151 // locks to lock on Java objects, because they will not be respected if a 153 // locks to lock on Java objects, because they will not be respected if a