src/hotspot/share/runtime/mutexLocker.hpp
changeset 49601 bfc70d5d291a
parent 48787 7638bf98a312
child 49611 973c9504178e
equal deleted inserted replaced
49600:d7c83c8e4e65 49601:bfc70d5d291a
   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.