Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/mutexLocker.hpp @ 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 |
---|---|
144 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations | 144 extern Mutex* JfrBuffer_lock; // protects JFR buffer operations |
145 extern Mutex* JfrStream_lock; // protects JFR stream access | 145 extern Mutex* JfrStream_lock; // protects JFR stream access |
146 extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups | 146 extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups |
147 #endif | 147 #endif |
148 | 148 |
149 #ifdef GRAAL | |
150 extern Monitor* GraalInitialization_lock; // ensures exactly 1 thread initializes Graal | |
151 #endif | |
152 | |
153 // A MutexLocker provides mutual exclusion with respect to a given mutex | 149 // A MutexLocker provides mutual exclusion with respect to a given mutex |
154 // for the scope which contains the locker. The lock is an OS lock, not | 150 // for the scope which contains the locker. The lock is an OS lock, not |
155 // an object lock, and the two do not interoperate. Do not use Mutex-based | 151 // an object lock, and the two do not interoperate. Do not use Mutex-based |
156 // locks to lock on Java objects, because they will not be respected if a | 152 // locks to lock on Java objects, because they will not be respected if a |
157 // that object is locked using the Java locking mechanism. | 153 // that object is locked using the Java locking mechanism. |