mutexLocker.cpp revision 1358
4632N/A#include "incls/_mutexLocker.cpp.incl"
4632N/A// Mutexes used in the VM (see comment in mutexLocker.hpp):
#ifdef TIERED
#ifndef PRODUCT
static int _num_mutex;
#ifdef ASSERT
if (IgnoreLockingAssertions) return;
if (IgnoreLockingAssertions) return;
void mutex_init() {
if (UseConcMarkSweepGC) {
if (UseG1GC) {
#ifndef PRODUCT
def(PerfDataMemAlloc_lock , Mutex , leaf, true ); // used for allocating PerfData memory for performance data
def(PerfDataManager_lock , Mutex , leaf, true ); // used for synchronized access to PerfDataManager resources
if (UseConcMarkSweepGC) {
def(JNICachedItableIndex_lock , Mutex , nonleaf+1, false); // Used to cache an itable index during JNI invoke
def(JvmtiThreadState_lock , Mutex , nonleaf+2, false); // Used by JvmtiThreadState/JvmtiEventController
#ifdef TIERED
_locked = false;
_locked = true;
bool none = true;
for (int i = 0; i < _num_mutex; i++) {
if (none) {
none = false;