Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/mutexLocker.hpp Thu Aug 22 21:23:31 2013 -0700 +++ b/src/share/vm/runtime/mutexLocker.hpp Fri Aug 23 10:36:34 2013 +0200 @@ -137,13 +137,15 @@ extern Mutex* Management_lock; // a lock used to serialize JVM management extern Monitor* Service_lock; // a lock used for service thread operation -extern Mutex* Stacktrace_lock; // used to guard access to the stacktrace table +extern Monitor* PeriodicTask_lock; // protects the periodic task structure -extern Monitor* JfrQuery_lock; // protects JFR use +#ifdef INCLUDE_TRACE +extern Mutex* JfrStacktrace_lock; // used to guard access to the JFR stacktrace table extern Monitor* JfrMsg_lock; // protects JFR messaging extern Mutex* JfrBuffer_lock; // protects JFR buffer operations extern Mutex* JfrStream_lock; // protects JFR stream access -extern Monitor* PeriodicTask_lock; // protects the periodic task structure +extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups +#endif // A MutexLocker provides mutual exclusion with respect to a given mutex // for the scope which contains the locker. The lock is an OS lock, not