changeset 15608:4e12cac4e51e

removed unnecessary mutex
author Doug Simon <doug.simon@oracle.com>
date Tue, 13 May 2014 11:55:11 +0200
parents e0e1aa1b9295
children 66d31e70bd79
files src/share/vm/runtime/mutexLocker.cpp src/share/vm/runtime/mutexLocker.hpp
diffstat 2 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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) {
--- 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