comparison src/share/vm/runtime/mutexLocker.hpp @ 6939:c284cf4781f0

7127792: Add the ability to change an existing PeriodicTask's execution interval Summary: Enables dynamic enrollment / disenrollment from the PeriodicTasks in WatcherThread. Reviewed-by: dholmes, mgronlun
author rbackman
date Thu, 04 Oct 2012 14:55:57 +0200
parents 0a10d80352d5
children e522a00b91aa 6337ca4dcad8
comparison
equal deleted inserted replaced
6938:8940ddc1036f 6939:c284cf4781f0
140 140
141 extern Monitor* JfrQuery_lock; // protects JFR use 141 extern Monitor* JfrQuery_lock; // protects JFR use
142 extern Monitor* JfrMsg_lock; // protects JFR messaging 142 extern Monitor* JfrMsg_lock; // protects JFR messaging
143 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations 143 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations
144 extern Mutex* JfrStream_lock; // protects JFR stream access 144 extern Mutex* JfrStream_lock; // protects JFR stream access
145 extern Monitor* PeriodicTask_lock; // protects the periodic task structure
145 146
146 // A MutexLocker provides mutual exclusion with respect to a given mutex 147 // A MutexLocker provides mutual exclusion with respect to a given mutex
147 // for the scope which contains the locker. The lock is an OS lock, not 148 // for the scope which contains the locker. The lock is an OS lock, not
148 // an object lock, and the two do not interoperate. Do not use Mutex-based 149 // an object lock, and the two do not interoperate. Do not use Mutex-based
149 // locks to lock on Java objects, because they will not be respected if a 150 // locks to lock on Java objects, because they will not be respected if a