equal
deleted
inserted
replaced
134 Mutex* JfrBuffer_lock = NULL; |
134 Mutex* JfrBuffer_lock = NULL; |
135 Mutex* JfrStream_lock = NULL; |
135 Mutex* JfrStream_lock = NULL; |
136 Mutex* JfrThreadGroups_lock = NULL; |
136 Mutex* JfrThreadGroups_lock = NULL; |
137 #endif |
137 #endif |
138 |
138 |
|
139 #ifndef SUPPORTS_NATIVE_CX8 |
|
140 Mutex* UnsafeJlong_lock = NULL; |
|
141 #endif |
|
142 |
139 #define MAX_NUM_MUTEX 128 |
143 #define MAX_NUM_MUTEX 128 |
140 static Monitor * _mutex_array[MAX_NUM_MUTEX]; |
144 static Monitor * _mutex_array[MAX_NUM_MUTEX]; |
141 static int _num_mutex; |
145 static int _num_mutex; |
142 |
146 |
143 #ifdef ASSERT |
147 #ifdef ASSERT |
284 def(JfrThreadGroups_lock , Mutex, leaf, true); |
288 def(JfrThreadGroups_lock , Mutex, leaf, true); |
285 def(JfrStream_lock , Mutex, nonleaf, true); |
289 def(JfrStream_lock , Mutex, nonleaf, true); |
286 def(JfrStacktrace_lock , Mutex, special, true); |
290 def(JfrStacktrace_lock , Mutex, special, true); |
287 #endif |
291 #endif |
288 |
292 |
|
293 #ifndef SUPPORTS_NATIVE_CX8 |
|
294 def(UnsafeJlong_lock , Mutex, special, false); |
|
295 #endif |
289 } |
296 } |
290 |
297 |
291 GCMutexLocker::GCMutexLocker(Monitor * mutex) { |
298 GCMutexLocker::GCMutexLocker(Monitor * mutex) { |
292 if (SafepointSynchronize::is_at_safepoint()) { |
299 if (SafepointSynchronize::is_at_safepoint()) { |
293 _locked = false; |
300 _locked = false; |