hotspot/src/share/vm/runtime/mutexLocker.cpp
changeset 27645 8fe155d119af
parent 27628 b655b90d98f4
parent 27642 8c9eff693145
child 27874 e9b44eb1613f
--- a/hotspot/src/share/vm/runtime/mutexLocker.cpp	Thu Nov 13 12:29:09 2014 +0100
+++ b/hotspot/src/share/vm/runtime/mutexLocker.cpp	Thu Nov 13 11:35:15 2014 -0500
@@ -87,6 +87,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;
@@ -274,7 +275,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);