comparison src/share/vm/runtime/mutexLocker.cpp @ 5129:51111665eda6

Support for recording a leaf graph id for each deoptimization point in the debug info.
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 21 Mar 2012 10:47:02 +0100
parents 0a10d80352d5
children e522a00b91aa
comparison
equal deleted inserted replaced
5128:e2da6471a9a1 5129:51111665eda6
139 Monitor* JfrQuery_lock = NULL; 139 Monitor* JfrQuery_lock = NULL;
140 Monitor* JfrMsg_lock = NULL; 140 Monitor* JfrMsg_lock = NULL;
141 Mutex* JfrBuffer_lock = NULL; 141 Mutex* JfrBuffer_lock = NULL;
142 Mutex* JfrStream_lock = NULL; 142 Mutex* JfrStream_lock = NULL;
143 143
144 #ifdef GRAAL
145 Mutex* GraalDeoptLeafGraphIds_lock = NULL;
146 #endif // GRAAL
147
144 #define MAX_NUM_MUTEX 128 148 #define MAX_NUM_MUTEX 128
145 static Monitor * _mutex_array[MAX_NUM_MUTEX]; 149 static Monitor * _mutex_array[MAX_NUM_MUTEX];
146 static int _num_mutex; 150 static int _num_mutex;
147 151
148 #ifdef ASSERT 152 #ifdef ASSERT
283 287
284 def(JfrQuery_lock , Monitor, nonleaf, true); // JFR locks, keep these in consecutive order 288 def(JfrQuery_lock , Monitor, nonleaf, true); // JFR locks, keep these in consecutive order
285 def(JfrMsg_lock , Monitor, nonleaf+2, true); 289 def(JfrMsg_lock , Monitor, nonleaf+2, true);
286 def(JfrBuffer_lock , Mutex, nonleaf+3, true); 290 def(JfrBuffer_lock , Mutex, nonleaf+3, true);
287 def(JfrStream_lock , Mutex, nonleaf+4, true); 291 def(JfrStream_lock , Mutex, nonleaf+4, true);
292
293 #ifdef GRAAL
294 def(GraalDeoptLeafGraphIds_lock , Mutex, special, true);
295 #endif // GRAAL
288 } 296 }
289 297
290 GCMutexLocker::GCMutexLocker(Monitor * mutex) { 298 GCMutexLocker::GCMutexLocker(Monitor * mutex) {
291 if (SafepointSynchronize::is_at_safepoint()) { 299 if (SafepointSynchronize::is_at_safepoint()) {
292 _locked = false; 300 _locked = false;