equal
deleted
inserted
replaced
138 #endif |
138 #endif |
139 |
139 |
140 extern Mutex* MetaspaceExpand_lock; // protects Metaspace virtualspace and chunk expansions |
140 extern Mutex* MetaspaceExpand_lock; // protects Metaspace virtualspace and chunk expansions |
141 |
141 |
142 |
142 |
|
143 extern Monitor* CodeHeapStateAnalytics_lock; // lock print functions against concurrent analyze functions. |
|
144 // Only used locally in PrintCodeCacheLayout processing. |
|
145 |
143 // A MutexLocker provides mutual exclusion with respect to a given mutex |
146 // A MutexLocker provides mutual exclusion with respect to a given mutex |
144 // for the scope which contains the locker. The lock is an OS lock, not |
147 // for the scope which contains the locker. The lock is an OS lock, not |
145 // an object lock, and the two do not interoperate. Do not use Mutex-based |
148 // an object lock, and the two do not interoperate. Do not use Mutex-based |
146 // locks to lock on Java objects, because they will not be respected if a |
149 // locks to lock on Java objects, because they will not be respected if a |
147 // that object is locked using the Java locking mechanism. |
150 // that object is locked using the Java locking mechanism. |