comparison src/hotspot/share/runtime/mutexLocker.cpp @ 52291:35a6956f4243

8209976: Improve iteration over non-JavaThreads Summary: Add NonJavaThread and move NamedThread iteration to new class. Reviewed-by: eosterlund, coleenp, rkennke
author kbarrett
date Tue, 28 Aug 2018 16:04:54 -0400
parents 1f0b605bdc28
children 625a5bdde0c5
comparison
equal deleted inserted replaced
19:c7afbecf9b5a 20:96201774e751
74 Monitor* VMOperationQueue_lock = NULL; 74 Monitor* VMOperationQueue_lock = NULL;
75 Monitor* VMOperationRequest_lock = NULL; 75 Monitor* VMOperationRequest_lock = NULL;
76 Monitor* Safepoint_lock = NULL; 76 Monitor* Safepoint_lock = NULL;
77 Monitor* SerializePage_lock = NULL; 77 Monitor* SerializePage_lock = NULL;
78 Monitor* Threads_lock = NULL; 78 Monitor* Threads_lock = NULL;
79 Mutex* NamedThreadsList_lock = NULL; 79 Mutex* NonJavaThreadsList_lock = NULL;
80 Monitor* CGC_lock = NULL; 80 Monitor* CGC_lock = NULL;
81 Monitor* STS_lock = NULL; 81 Monitor* STS_lock = NULL;
82 Monitor* FullGCCount_lock = NULL; 82 Monitor* FullGCCount_lock = NULL;
83 Mutex* SATB_Q_FL_lock = NULL; 83 Mutex* SATB_Q_FL_lock = NULL;
84 Monitor* SATB_Q_CBL_mon = NULL; 84 Monitor* SATB_Q_CBL_mon = NULL;
255 // CMS_freeList_lock leaf 2 255 // CMS_freeList_lock leaf 2
256 256
257 def(Safepoint_lock , PaddedMonitor, safepoint, true, Monitor::_safepoint_check_sometimes); // locks SnippetCache_lock/Threads_lock 257 def(Safepoint_lock , PaddedMonitor, safepoint, true, Monitor::_safepoint_check_sometimes); // locks SnippetCache_lock/Threads_lock
258 258
259 def(Threads_lock , PaddedMonitor, barrier, true, Monitor::_safepoint_check_sometimes); 259 def(Threads_lock , PaddedMonitor, barrier, true, Monitor::_safepoint_check_sometimes);
260 def(NamedThreadsList_lock , PaddedMutex, leaf, true, Monitor::_safepoint_check_never); 260 def(NonJavaThreadsList_lock , PaddedMutex, leaf, true, Monitor::_safepoint_check_never);
261 261
262 def(VMOperationQueue_lock , PaddedMonitor, nonleaf, true, Monitor::_safepoint_check_sometimes); // VM_thread allowed to block on these 262 def(VMOperationQueue_lock , PaddedMonitor, nonleaf, true, Monitor::_safepoint_check_sometimes); // VM_thread allowed to block on these
263 def(VMOperationRequest_lock , PaddedMonitor, nonleaf, true, Monitor::_safepoint_check_sometimes); 263 def(VMOperationRequest_lock , PaddedMonitor, nonleaf, true, Monitor::_safepoint_check_sometimes);
264 def(RetData_lock , PaddedMutex , nonleaf, false, Monitor::_safepoint_check_always); 264 def(RetData_lock , PaddedMutex , nonleaf, false, Monitor::_safepoint_check_always);
265 def(Terminator_lock , PaddedMonitor, nonleaf, true, Monitor::_safepoint_check_sometimes); 265 def(Terminator_lock , PaddedMonitor, nonleaf, true, Monitor::_safepoint_check_sometimes);