# HG changeset patch # User Doug Simon # Date 1399974911 -7200 # Node ID 4e12cac4e51eb0bdd141a2f7777ea5e84a6c8c12 # Parent e0e1aa1b929588faff14212f29ae04e12f8d44db removed unnecessary mutex diff -r e0e1aa1b9295 -r 4e12cac4e51e src/share/vm/runtime/mutexLocker.cpp --- a/src/share/vm/runtime/mutexLocker.cpp Tue May 13 11:06:10 2014 +0200 +++ b/src/share/vm/runtime/mutexLocker.cpp Tue May 13 11:55:11 2014 +0200 @@ -133,10 +133,6 @@ Mutex* JfrThreadGroups_lock = NULL; #endif -#ifdef GRAAL -Monitor* GraalInitialization_lock = NULL; -#endif - #define MAX_NUM_MUTEX 128 static Monitor * _mutex_array[MAX_NUM_MUTEX]; static int _num_mutex; @@ -284,10 +280,6 @@ def(JfrStream_lock , Mutex, nonleaf+2, true); def(JfrStacktrace_lock , Mutex, special, true ); #endif - -#ifdef GRAAL - def(GraalInitialization_lock , Monitor, nonleaf+5, false); -#endif } GCMutexLocker::GCMutexLocker(Monitor * mutex) { diff -r e0e1aa1b9295 -r 4e12cac4e51e src/share/vm/runtime/mutexLocker.hpp --- a/src/share/vm/runtime/mutexLocker.hpp Tue May 13 11:06:10 2014 +0200 +++ b/src/share/vm/runtime/mutexLocker.hpp Tue May 13 11:55:11 2014 +0200 @@ -146,10 +146,6 @@ extern Mutex* JfrThreadGroups_lock; // protects JFR access to Thread Groups #endif -#ifdef GRAAL -extern Monitor* GraalInitialization_lock; // ensures exactly 1 thread initializes Graal -#endif - // A MutexLocker provides mutual exclusion with respect to a given mutex // for the scope which contains the locker. The lock is an OS lock, not // an object lock, and the two do not interoperate. Do not use Mutex-based