diff src/share/vm/runtime/mutexLocker.cpp @ 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 da91efe96a93
children e522a00b91aa f34d701e952e
line wrap: on
line diff
--- a/src/share/vm/runtime/mutexLocker.cpp	Mon Nov 05 13:55:31 2012 -0800
+++ b/src/share/vm/runtime/mutexLocker.cpp	Thu Oct 04 14:55:57 2012 +0200
@@ -140,6 +140,7 @@
 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 @@
   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) {