hotspot/src/share/vm/runtime/mutexLocker.cpp
changeset 27642 8c9eff693145
parent 27420 04e6f914cce1
child 27645 8fe155d119af
--- a/hotspot/src/share/vm/runtime/mutexLocker.cpp	Sat Nov 08 16:00:28 2014 +0300
+++ b/hotspot/src/share/vm/runtime/mutexLocker.cpp	Mon Nov 10 19:04:38 2014 +0300
@@ -88,6 +88,7 @@
 Mutex*   Compile_lock                 = NULL;
 Monitor* MethodCompileQueue_lock      = NULL;
 Monitor* CompileThread_lock           = NULL;
+Monitor* Compilation_lock             = NULL;
 Mutex*   CompileTaskAlloc_lock        = NULL;
 Mutex*   CompileStatistics_lock       = NULL;
 Mutex*   MultiArray_lock              = NULL;
@@ -278,7 +279,9 @@
   def(ProfileVM_lock               , Monitor, special,   false); // used for profiling of the VMThread
   def(CompileThread_lock           , Monitor, nonleaf+5,   false );
   def(PeriodicTask_lock            , Monitor, nonleaf+5,   true);
-
+  if (WhiteBoxAPI) {
+    def(Compilation_lock           , Monitor, leaf,        false );
+  }
 #ifdef INCLUDE_TRACE
   def(JfrMsg_lock                  , Monitor, leaf,        true);
   def(JfrBuffer_lock               , Mutex,   leaf,        true);