src/hotspot/share/runtime/mutexLocker.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File webrev Sdiff src/hotspot/share/runtime

src/hotspot/share/runtime/mutexLocker.hpp

Print this page




   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  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
  26 #define SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
  27 
  28 #include "memory/allocation.hpp"

  29 #include "runtime/mutex.hpp"
  30 
  31 // Mutexes used in the VM.
  32 
  33 extern Mutex*   Patching_lock;                   // a lock used to guard code patching of compiled code
  34 extern Monitor* SystemDictionary_lock;           // a lock on the system dictionary
  35 extern Mutex*   Module_lock;                     // a lock on module and package related data structures
  36 extern Mutex*   CompiledIC_lock;                 // a lock used to guard compiled IC patching and access
  37 extern Mutex*   InlineCacheBuffer_lock;          // a lock used to guard the InlineCacheBuffer
  38 extern Mutex*   VMStatistic_lock;                // a lock used to guard statistics count increment
  39 extern Mutex*   JNIGlobalAlloc_lock;             // JNI global storage allocate list lock
  40 extern Mutex*   JNIGlobalActive_lock;            // JNI global storage active list lock
  41 extern Mutex*   JNIWeakAlloc_lock;               // JNI weak storage allocate list lock
  42 extern Mutex*   JNIWeakActive_lock;              // JNI weak storage active list lock
  43 extern Mutex*   JNIHandleBlockFreeList_lock;     // a lock on the JNI handle block free list
  44 extern Mutex*   ResolvedMethodTable_lock;        // a lock on the ResolvedMethodTable updates
  45 extern Mutex*   JmethodIdCreation_lock;          // a lock on creating JNI method identifiers
  46 extern Mutex*   JfieldIdCreation_lock;           // a lock on creating JNI static field identifiers
  47 extern Monitor* JNICritical_lock;                // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
  48 extern Mutex*   JvmtiThreadState_lock;           // a lock on modification of JVMTI thread data




   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  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
  26 #define SHARE_VM_RUNTIME_MUTEXLOCKER_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "runtime/flags/flagSetting.hpp"
  30 #include "runtime/mutex.hpp"
  31 
  32 // Mutexes used in the VM.
  33 
  34 extern Mutex*   Patching_lock;                   // a lock used to guard code patching of compiled code
  35 extern Monitor* SystemDictionary_lock;           // a lock on the system dictionary
  36 extern Mutex*   Module_lock;                     // a lock on module and package related data structures
  37 extern Mutex*   CompiledIC_lock;                 // a lock used to guard compiled IC patching and access
  38 extern Mutex*   InlineCacheBuffer_lock;          // a lock used to guard the InlineCacheBuffer
  39 extern Mutex*   VMStatistic_lock;                // a lock used to guard statistics count increment
  40 extern Mutex*   JNIGlobalAlloc_lock;             // JNI global storage allocate list lock
  41 extern Mutex*   JNIGlobalActive_lock;            // JNI global storage active list lock
  42 extern Mutex*   JNIWeakAlloc_lock;               // JNI weak storage allocate list lock
  43 extern Mutex*   JNIWeakActive_lock;              // JNI weak storage active list lock
  44 extern Mutex*   JNIHandleBlockFreeList_lock;     // a lock on the JNI handle block free list
  45 extern Mutex*   ResolvedMethodTable_lock;        // a lock on the ResolvedMethodTable updates
  46 extern Mutex*   JmethodIdCreation_lock;          // a lock on creating JNI method identifiers
  47 extern Mutex*   JfieldIdCreation_lock;           // a lock on creating JNI static field identifiers
  48 extern Monitor* JNICritical_lock;                // a lock used while entering and exiting JNI critical regions, allows GC to sometimes get in
  49 extern Mutex*   JvmtiThreadState_lock;           // a lock on modification of JVMTI thread data


src/hotspot/share/runtime/mutexLocker.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File