equal
deleted
inserted
replaced
135 |
135 |
136 #ifndef SUPPORTS_NATIVE_CX8 |
136 #ifndef SUPPORTS_NATIVE_CX8 |
137 extern Mutex* UnsafeJlong_lock; // provides Unsafe atomic updates to jlongs on platforms that don't support cx8 |
137 extern Mutex* UnsafeJlong_lock; // provides Unsafe atomic updates to jlongs on platforms that don't support cx8 |
138 #endif |
138 #endif |
139 |
139 |
|
140 extern Mutex* MetaspaceExpand_lock; // protects Metaspace virtualspace and chunk expansions |
|
141 |
|
142 |
140 // A MutexLocker provides mutual exclusion with respect to a given mutex |
143 // A MutexLocker provides mutual exclusion with respect to a given mutex |
141 // for the scope which contains the locker. The lock is an OS lock, not |
144 // for the scope which contains the locker. The lock is an OS lock, not |
142 // an object lock, and the two do not interoperate. Do not use Mutex-based |
145 // an object lock, and the two do not interoperate. Do not use Mutex-based |
143 // locks to lock on Java objects, because they will not be respected if a |
146 // locks to lock on Java objects, because they will not be respected if a |
144 // that object is locked using the Java locking mechanism. |
147 // that object is locked using the Java locking mechanism. |