Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/mutexLocker.cpp @ 15608:4e12cac4e51e
removed unnecessary mutex
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 13 May 2014 11:55:11 +0200 |
parents | 063ec2920d21 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
15607:e0e1aa1b9295 | 15608:4e12cac4e51e |
---|---|
131 Mutex* JfrBuffer_lock = NULL; | 131 Mutex* JfrBuffer_lock = NULL; |
132 Mutex* JfrStream_lock = NULL; | 132 Mutex* JfrStream_lock = NULL; |
133 Mutex* JfrThreadGroups_lock = NULL; | 133 Mutex* JfrThreadGroups_lock = NULL; |
134 #endif | 134 #endif |
135 | 135 |
136 #ifdef GRAAL | |
137 Monitor* GraalInitialization_lock = NULL; | |
138 #endif | |
139 | |
140 #define MAX_NUM_MUTEX 128 | 136 #define MAX_NUM_MUTEX 128 |
141 static Monitor * _mutex_array[MAX_NUM_MUTEX]; | 137 static Monitor * _mutex_array[MAX_NUM_MUTEX]; |
142 static int _num_mutex; | 138 static int _num_mutex; |
143 | 139 |
144 #ifdef ASSERT | 140 #ifdef ASSERT |
281 def(JfrMsg_lock , Monitor, leaf, true); | 277 def(JfrMsg_lock , Monitor, leaf, true); |
282 def(JfrBuffer_lock , Mutex, nonleaf+1, true); | 278 def(JfrBuffer_lock , Mutex, nonleaf+1, true); |
283 def(JfrThreadGroups_lock , Mutex, nonleaf+1, true); | 279 def(JfrThreadGroups_lock , Mutex, nonleaf+1, true); |
284 def(JfrStream_lock , Mutex, nonleaf+2, true); | 280 def(JfrStream_lock , Mutex, nonleaf+2, true); |
285 def(JfrStacktrace_lock , Mutex, special, true ); | 281 def(JfrStacktrace_lock , Mutex, special, true ); |
286 #endif | |
287 | |
288 #ifdef GRAAL | |
289 def(GraalInitialization_lock , Monitor, nonleaf+5, false); | |
290 #endif | 282 #endif |
291 } | 283 } |
292 | 284 |
293 GCMutexLocker::GCMutexLocker(Monitor * mutex) { | 285 GCMutexLocker::GCMutexLocker(Monitor * mutex) { |
294 if (SafepointSynchronize::is_at_safepoint()) { | 286 if (SafepointSynchronize::is_at_safepoint()) { |