src/hotspot/share/runtime/mutexLocker.cpp
changeset 51608 625a5bdde0c5
parent 51548 35a6956f4243
child 51625 c265860d5d45
equal deleted inserted replaced
51607:5eb48e9d607a 51608:625a5bdde0c5
   145 Mutex*   UnsafeJlong_lock             = NULL;
   145 Mutex*   UnsafeJlong_lock             = NULL;
   146 #endif
   146 #endif
   147 Monitor* CodeHeapStateAnalytics_lock  = NULL;
   147 Monitor* CodeHeapStateAnalytics_lock  = NULL;
   148 
   148 
   149 Mutex*   MetaspaceExpand_lock         = NULL;
   149 Mutex*   MetaspaceExpand_lock         = NULL;
       
   150 Mutex*   ClassLoaderDataGraph_lock    = NULL;
   150 
   151 
   151 #define MAX_NUM_MUTEX 128
   152 #define MAX_NUM_MUTEX 128
   152 static Monitor * _mutex_array[MAX_NUM_MUTEX];
   153 static Monitor * _mutex_array[MAX_NUM_MUTEX];
   153 static int _num_mutex;
   154 static int _num_mutex;
   154 
   155 
   222   def(CodeCache_lock               , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   223   def(CodeCache_lock               , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   223   def(RawMonitor_lock              , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   224   def(RawMonitor_lock              , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);
   224   def(OopMapCacheAlloc_lock        , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_always);     // used for oop_map_cache allocation.
   225   def(OopMapCacheAlloc_lock        , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_always);     // used for oop_map_cache allocation.
   225 
   226 
   226   def(MetaspaceExpand_lock         , PaddedMutex  , leaf-1,      true,  Monitor::_safepoint_check_never);
   227   def(MetaspaceExpand_lock         , PaddedMutex  , leaf-1,      true,  Monitor::_safepoint_check_never);
       
   228   def(ClassLoaderDataGraph_lock    , PaddedMutex  , nonleaf,     true,  Monitor::_safepoint_check_always);
   227 
   229 
   228   def(Patching_lock                , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);      // used for safepointing and code patching.
   230   def(Patching_lock                , PaddedMutex  , special,     true,  Monitor::_safepoint_check_never);      // used for safepointing and code patching.
   229   def(Service_lock                 , PaddedMonitor, special,     true,  Monitor::_safepoint_check_never);      // used for service thread operations
   231   def(Service_lock                 , PaddedMonitor, special,     true,  Monitor::_safepoint_check_never);      // used for service thread operations
   230   def(JmethodIdCreation_lock       , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_always);     // used for creating jmethodIDs.
   232   def(JmethodIdCreation_lock       , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_always);     // used for creating jmethodIDs.
   231 
   233