equal
deleted
inserted
replaced
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; |