src/share/vm/runtime/mutexLocker.hpp

Print this page
rev 5952 : 8029075: String deduplication in G1
Summary: Implementation of JEP 192, http://openjdk.java.net/jeps/192
Reviewed-by: brutisso, tschatzl, coleenp
   1 /*
   2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  46 extern Monitor* SystemDictionary_lock;           // a lock on the system dictonary
  47 extern Mutex*   PackageTable_lock;               // a lock on the class loader package table
  48 extern Mutex*   CompiledIC_lock;                 // a lock used to guard compiled IC patching and access
  49 extern Mutex*   InlineCacheBuffer_lock;          // a lock used to guard the InlineCacheBuffer
  50 extern Mutex*   VMStatistic_lock;                // a lock used to guard statistics count increment
  51 extern Mutex*   JNIGlobalHandle_lock;            // a lock on creating JNI global handles
  52 extern Mutex*   JNIHandleBlockFreeList_lock;     // a lock on the JNI handle block free list
  53 extern Mutex*   MemberNameTable_lock;            // a lock on the MemberNameTable updates
  54 extern Mutex*   JmethodIdCreation_lock;          // a lock on creating JNI method identifiers
  55 extern Mutex*   JfieldIdCreation_lock;           // a lock on creating JNI static field identifiers
  56 extern Monitor* JNICritical_lock;                // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
  57 extern Mutex*   JvmtiThreadState_lock;           // a lock on modification of JVMTI thread data
  58 extern Monitor* JvmtiPendingEvent_lock;          // a lock on the JVMTI pending events list
  59 extern Monitor* Heap_lock;                       // a lock on the heap
  60 extern Mutex*   ExpandHeap_lock;                 // a lock on expanding the heap
  61 extern Mutex*   AdapterHandlerLibrary_lock;      // a lock on the AdapterHandlerLibrary
  62 extern Mutex*   SignatureHandlerLibrary_lock;    // a lock on the SignatureHandlerLibrary
  63 extern Mutex*   VtableStubs_lock;                // a lock on the VtableStubs
  64 extern Mutex*   SymbolTable_lock;                // a lock on the symbol table
  65 extern Mutex*   StringTable_lock;                // a lock on the interned string table


  66 extern Mutex*   CodeCache_lock;                  // a lock on the CodeCache, rank is special, use MutexLockerEx
  67 extern Mutex*   MethodData_lock;                 // a lock on installation of method data
  68 extern Mutex*   RetData_lock;                    // a lock on installation of RetData inside method data
  69 extern Mutex*   DerivedPointerTableGC_lock;      // a lock to protect the derived pointer table
  70 extern Monitor* VMOperationQueue_lock;           // a lock on queue of vm_operations waiting to execute
  71 extern Monitor* VMOperationRequest_lock;         // a lock on Threads waiting for a vm_operation to terminate
  72 extern Monitor* Safepoint_lock;                  // a lock used by the safepoint abstraction
  73 extern Monitor* Threads_lock;                    // a lock on the Threads table of active Java threads
  74                                                  // (also used by Safepoints too to block threads creation/destruction)
  75 extern Monitor* CGC_lock;                        // used for coordination between
  76                                                  // fore- & background GC threads.
  77 extern Mutex*   STS_init_lock;                   // coordinate initialization of SuspendibleThreadSets.
  78 extern Monitor* SLT_lock;                        // used in CMS GC for acquiring PLL
  79 extern Monitor* iCMS_lock;                       // CMS incremental mode start/stop notification
  80 extern Monitor* FullGCCount_lock;                // in support of "concurrent" full gc
  81 extern Monitor* CMark_lock;                      // used for concurrent mark thread coordination
  82 extern Mutex*   CMRegionStack_lock;              // used for protecting accesses to the CM region stack
  83 extern Mutex*   SATB_Q_FL_lock;                  // Protects SATB Q
  84                                                  // buffer free list.
  85 extern Monitor* SATB_Q_CBL_mon;                  // Protects SATB Q


   1 /*
   2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  46 extern Monitor* SystemDictionary_lock;           // a lock on the system dictonary
  47 extern Mutex*   PackageTable_lock;               // a lock on the class loader package table
  48 extern Mutex*   CompiledIC_lock;                 // a lock used to guard compiled IC patching and access
  49 extern Mutex*   InlineCacheBuffer_lock;          // a lock used to guard the InlineCacheBuffer
  50 extern Mutex*   VMStatistic_lock;                // a lock used to guard statistics count increment
  51 extern Mutex*   JNIGlobalHandle_lock;            // a lock on creating JNI global handles
  52 extern Mutex*   JNIHandleBlockFreeList_lock;     // a lock on the JNI handle block free list
  53 extern Mutex*   MemberNameTable_lock;            // a lock on the MemberNameTable updates
  54 extern Mutex*   JmethodIdCreation_lock;          // a lock on creating JNI method identifiers
  55 extern Mutex*   JfieldIdCreation_lock;           // a lock on creating JNI static field identifiers
  56 extern Monitor* JNICritical_lock;                // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
  57 extern Mutex*   JvmtiThreadState_lock;           // a lock on modification of JVMTI thread data
  58 extern Monitor* JvmtiPendingEvent_lock;          // a lock on the JVMTI pending events list
  59 extern Monitor* Heap_lock;                       // a lock on the heap
  60 extern Mutex*   ExpandHeap_lock;                 // a lock on expanding the heap
  61 extern Mutex*   AdapterHandlerLibrary_lock;      // a lock on the AdapterHandlerLibrary
  62 extern Mutex*   SignatureHandlerLibrary_lock;    // a lock on the SignatureHandlerLibrary
  63 extern Mutex*   VtableStubs_lock;                // a lock on the VtableStubs
  64 extern Mutex*   SymbolTable_lock;                // a lock on the symbol table
  65 extern Mutex*   StringTable_lock;                // a lock on the interned string table
  66 extern Monitor* StringDedupQueue_lock;           // a lock on the string deduplication queue
  67 extern Mutex*   StringDedupTable_lock;           // a lock on the string deduplication table
  68 extern Mutex*   CodeCache_lock;                  // a lock on the CodeCache, rank is special, use MutexLockerEx
  69 extern Mutex*   MethodData_lock;                 // a lock on installation of method data
  70 extern Mutex*   RetData_lock;                    // a lock on installation of RetData inside method data
  71 extern Mutex*   DerivedPointerTableGC_lock;      // a lock to protect the derived pointer table
  72 extern Monitor* VMOperationQueue_lock;           // a lock on queue of vm_operations waiting to execute
  73 extern Monitor* VMOperationRequest_lock;         // a lock on Threads waiting for a vm_operation to terminate
  74 extern Monitor* Safepoint_lock;                  // a lock used by the safepoint abstraction
  75 extern Monitor* Threads_lock;                    // a lock on the Threads table of active Java threads
  76                                                  // (also used by Safepoints too to block threads creation/destruction)
  77 extern Monitor* CGC_lock;                        // used for coordination between
  78                                                  // fore- & background GC threads.
  79 extern Mutex*   STS_init_lock;                   // coordinate initialization of SuspendibleThreadSets.
  80 extern Monitor* SLT_lock;                        // used in CMS GC for acquiring PLL
  81 extern Monitor* iCMS_lock;                       // CMS incremental mode start/stop notification
  82 extern Monitor* FullGCCount_lock;                // in support of "concurrent" full gc
  83 extern Monitor* CMark_lock;                      // used for concurrent mark thread coordination
  84 extern Mutex*   CMRegionStack_lock;              // used for protecting accesses to the CM region stack
  85 extern Mutex*   SATB_Q_FL_lock;                  // Protects SATB Q
  86                                                  // buffer free list.
  87 extern Monitor* SATB_Q_CBL_mon;                  // Protects SATB Q