src/hotspot/share/runtime/mutexLocker.hpp
changeset 55740 b3ff56f955c8
parent 55498 e64383344f14
child 57828 35db8fba55f9
equal deleted inserted replaced
55739:ba2bd51ce67e 55740:b3ff56f955c8
    44 extern Mutex*   JNIWeakAlloc_lock;               // JNI weak storage allocate list lock
    44 extern Mutex*   JNIWeakAlloc_lock;               // JNI weak storage allocate list lock
    45 extern Mutex*   JNIWeakActive_lock;              // JNI weak storage active list lock
    45 extern Mutex*   JNIWeakActive_lock;              // JNI weak storage active list lock
    46 extern Mutex*   StringTableWeakAlloc_lock;       // StringTable weak storage allocate list lock
    46 extern Mutex*   StringTableWeakAlloc_lock;       // StringTable weak storage allocate list lock
    47 extern Mutex*   StringTableWeakActive_lock;      // STringTable weak storage active list lock
    47 extern Mutex*   StringTableWeakActive_lock;      // STringTable weak storage active list lock
    48 extern Mutex*   JNIHandleBlockFreeList_lock;     // a lock on the JNI handle block free list
    48 extern Mutex*   JNIHandleBlockFreeList_lock;     // a lock on the JNI handle block free list
       
    49 extern Mutex*   VMGlobalAlloc_lock;              // VM Global Handles storage allocate list lock
       
    50 extern Mutex*   VMGlobalActive_lock;             // VM Global Handles storage active list lock
    49 extern Mutex*   VMWeakAlloc_lock;                // VM Weak Handles storage allocate list lock
    51 extern Mutex*   VMWeakAlloc_lock;                // VM Weak Handles storage allocate list lock
    50 extern Mutex*   VMWeakActive_lock;               // VM Weak Handles storage active list lock
    52 extern Mutex*   VMWeakActive_lock;               // VM Weak Handles storage active list lock
    51 extern Mutex*   ResolvedMethodTableWeakAlloc_lock;  // ResolvedMethodTable weak storage allocate list
    53 extern Mutex*   ResolvedMethodTableWeakAlloc_lock;  // ResolvedMethodTable weak storage allocate list
    52 extern Mutex*   ResolvedMethodTableWeakActive_lock; // ResolvedMethodTable weak storage active list
    54 extern Mutex*   ResolvedMethodTableWeakActive_lock; // ResolvedMethodTable weak storage active list
    53 extern Mutex*   JmethodIdCreation_lock;          // a lock on creating JNI method identifiers
    55 extern Mutex*   JmethodIdCreation_lock;          // a lock on creating JNI method identifiers
   155 extern Monitor* CodeHeapStateAnalytics_lock;     // lock print functions against concurrent analyze functions.
   157 extern Monitor* CodeHeapStateAnalytics_lock;     // lock print functions against concurrent analyze functions.
   156                                                  // Only used locally in PrintCodeCacheLayout processing.
   158                                                  // Only used locally in PrintCodeCacheLayout processing.
   157 
   159 
   158 #if INCLUDE_JVMCI
   160 #if INCLUDE_JVMCI
   159 extern Monitor* JVMCI_lock;                      // Monitor to control initialization of JVMCI
   161 extern Monitor* JVMCI_lock;                      // Monitor to control initialization of JVMCI
   160 extern Mutex*   JVMCIGlobalAlloc_lock;           // JVMCI global storage allocate list lock
       
   161 extern Mutex*   JVMCIGlobalActive_lock;          // JVMCI global storage active list lock
       
   162 #endif
   162 #endif
   163 
   163 
   164 // A MutexLocker provides mutual exclusion with respect to a given mutex
   164 // A MutexLocker provides mutual exclusion with respect to a given mutex
   165 // for the scope which contains the locker.  The lock is an OS lock, not
   165 // for the scope which contains the locker.  The lock is an OS lock, not
   166 // an object lock, and the two do not interoperate.  Do not use Mutex-based
   166 // an object lock, and the two do not interoperate.  Do not use Mutex-based