src/hotspot/share/runtime/mutexLocker.cpp
changeset 49611 973c9504178e
parent 49601 bfc70d5d291a
child 49632 64f9ebc85e67
equal deleted inserted replaced
49610:6790b1077a3f 49611:973c9504178e
   135 #endif
   135 #endif
   136 
   136 
   137 #ifndef SUPPORTS_NATIVE_CX8
   137 #ifndef SUPPORTS_NATIVE_CX8
   138 Mutex*   UnsafeJlong_lock             = NULL;
   138 Mutex*   UnsafeJlong_lock             = NULL;
   139 #endif
   139 #endif
       
   140 Monitor* CodeHeapStateAnalytics_lock  = NULL;
   140 
   141 
   141 Mutex*   MetaspaceExpand_lock         = NULL;
   142 Mutex*   MetaspaceExpand_lock         = NULL;
   142 
   143 
   143 #define MAX_NUM_MUTEX 128
   144 #define MAX_NUM_MUTEX 128
   144 static Monitor * _mutex_array[MAX_NUM_MUTEX];
   145 static Monitor * _mutex_array[MAX_NUM_MUTEX];
   299 #endif
   300 #endif
   300 
   301 
   301 #ifndef SUPPORTS_NATIVE_CX8
   302 #ifndef SUPPORTS_NATIVE_CX8
   302   def(UnsafeJlong_lock             , PaddedMutex  , special,     false, Monitor::_safepoint_check_never);
   303   def(UnsafeJlong_lock             , PaddedMutex  , special,     false, Monitor::_safepoint_check_never);
   303 #endif
   304 #endif
       
   305 
       
   306   def(CodeHeapStateAnalytics_lock  , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_never);
   304 }
   307 }
   305 
   308 
   306 GCMutexLocker::GCMutexLocker(Monitor * mutex) {
   309 GCMutexLocker::GCMutexLocker(Monitor * mutex) {
   307   if (SafepointSynchronize::is_at_safepoint()) {
   310   if (SafepointSynchronize::is_at_safepoint()) {
   308     _locked = false;
   311     _locked = false;