src/hotspot/share/runtime/mutexLocker.cpp
changeset 54927 1512d88b24c6
parent 54916 7136c9ac56a7
child 55005 9b70ebd131b4
equal deleted inserted replaced
54926:d4e7ccaf1445 54927:1512d88b24c6
   151 Mutex*   SharedDecoder_lock           = NULL;
   151 Mutex*   SharedDecoder_lock           = NULL;
   152 Mutex*   DCmdFactory_lock             = NULL;
   152 Mutex*   DCmdFactory_lock             = NULL;
   153 #if INCLUDE_NMT
   153 #if INCLUDE_NMT
   154 Mutex*   NMTQuery_lock                = NULL;
   154 Mutex*   NMTQuery_lock                = NULL;
   155 #endif
   155 #endif
   156 #if INCLUDE_CDS && INCLUDE_JVMTI
   156 #if INCLUDE_CDS
       
   157 #if INCLUDE_JVMTI
   157 Mutex*   CDSClassFileStream_lock      = NULL;
   158 Mutex*   CDSClassFileStream_lock      = NULL;
   158 #endif
   159 #endif
       
   160 Mutex*   DumpTimeTable_lock           = NULL;
       
   161 #endif // INCLUDE_CDS
   159 
   162 
   160 #if INCLUDE_JVMCI
   163 #if INCLUDE_JVMCI
   161 Monitor* JVMCI_lock                   = NULL;
   164 Monitor* JVMCI_lock                   = NULL;
   162 Mutex*   JVMCIGlobalAlloc_lock        = NULL;
   165 Mutex*   JVMCIGlobalAlloc_lock        = NULL;
   163 Mutex*   JVMCIGlobalActive_lock       = NULL;
   166 Mutex*   JVMCIGlobalActive_lock       = NULL;
   349   def(SharedDecoder_lock           , PaddedMutex  , native,      false, Monitor::_safepoint_check_never);
   352   def(SharedDecoder_lock           , PaddedMutex  , native,      false, Monitor::_safepoint_check_never);
   350   def(DCmdFactory_lock             , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_never);
   353   def(DCmdFactory_lock             , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_never);
   351 #if INCLUDE_NMT
   354 #if INCLUDE_NMT
   352   def(NMTQuery_lock                , PaddedMutex  , max_nonleaf, false, Monitor::_safepoint_check_always);
   355   def(NMTQuery_lock                , PaddedMutex  , max_nonleaf, false, Monitor::_safepoint_check_always);
   353 #endif
   356 #endif
   354 #if INCLUDE_CDS && INCLUDE_JVMTI
   357 #if INCLUDE_CDS
       
   358 #if INCLUDE_JVMTI
   355   def(CDSClassFileStream_lock      , PaddedMutex  , max_nonleaf, false, Monitor::_safepoint_check_always);
   359   def(CDSClassFileStream_lock      , PaddedMutex  , max_nonleaf, false, Monitor::_safepoint_check_always);
   356 #endif
   360 #endif
   357 
   361 
   358 #if INCLUDE_JVMCI
   362 #if INCLUDE_JVMCI
   359   def(JVMCI_lock                   , PaddedMonitor, nonleaf+2,   true,  Monitor::_safepoint_check_always);
   363   def(JVMCI_lock                   , PaddedMonitor, nonleaf+2,   true,  Monitor::_safepoint_check_always);
   360   def(JVMCIGlobalAlloc_lock        , PaddedMutex  , nonleaf,     true,  Monitor::_safepoint_check_never);
   364   def(JVMCIGlobalAlloc_lock        , PaddedMutex  , nonleaf,     true,  Monitor::_safepoint_check_never);
   361   def(JVMCIGlobalActive_lock       , PaddedMutex  , nonleaf-1,   true,  Monitor::_safepoint_check_never);
   365   def(JVMCIGlobalActive_lock       , PaddedMutex  , nonleaf-1,   true,  Monitor::_safepoint_check_never);
   362 #endif
   366 #endif
       
   367   def(DumpTimeTable_lock           , PaddedMutex  , leaf,        true,  Monitor::_safepoint_check_never);
       
   368 #endif // INCLUDE_CDS
   363 }
   369 }
   364 
   370 
   365 GCMutexLocker::GCMutexLocker(Monitor * mutex) {
   371 GCMutexLocker::GCMutexLocker(Monitor * mutex) {
   366   if (SafepointSynchronize::is_at_safepoint()) {
   372   if (SafepointSynchronize::is_at_safepoint()) {
   367     _locked = false;
   373     _locked = false;