diff options
author | rbackman <none@none> | 2012-10-04 14:55:57 +0200 |
---|---|---|
committer | rbackman <none@none> | 2012-10-04 14:55:57 +0200 |
commit | 2897f435931f57e216c050f5718c69f615b2f517 (patch) | |
tree | 81703bae2037cf5684c84e477ed7cf54c92016a2 /src/share/vm/runtime/mutexLocker.cpp | |
parent | 7e2313f498b4aaa97916f785170e4f35eb7bf7c6 (diff) | |
download | jdk8u_hotspot-2897f435931f57e216c050f5718c69f615b2f517.tar.gz |
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
Diffstat (limited to 'src/share/vm/runtime/mutexLocker.cpp')
-rw-r--r-- | src/share/vm/runtime/mutexLocker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/share/vm/runtime/mutexLocker.cpp b/src/share/vm/runtime/mutexLocker.cpp index b1d92def2..0be262268 100644 --- a/src/share/vm/runtime/mutexLocker.cpp +++ b/src/share/vm/runtime/mutexLocker.cpp @@ -140,6 +140,7 @@ Monitor* JfrQuery_lock = NULL; Monitor* JfrMsg_lock = NULL; Mutex* JfrBuffer_lock = NULL; Mutex* JfrStream_lock = NULL; +Monitor* PeriodicTask_lock = NULL; #define MAX_NUM_MUTEX 128 static Monitor * _mutex_array[MAX_NUM_MUTEX]; @@ -285,6 +286,7 @@ void mutex_init() { def(JfrMsg_lock , Monitor, nonleaf+2, true); def(JfrBuffer_lock , Mutex, nonleaf+3, true); def(JfrStream_lock , Mutex, nonleaf+4, true); + def(PeriodicTask_lock , Monitor, nonleaf+5, true); } GCMutexLocker::GCMutexLocker(Monitor * mutex) { |