changeset 4441:a47566645421

8006563: Remove unused ProfileVM_lock Reviewed-by: dholmes, sla
author rbackman
date Fri, 18 Jan 2013 13:43:56 +0100
parents 607dd575f464
children 77726262b76f 02b3e25dcc6b
files src/share/vm/runtime/mutex.cpp src/share/vm/runtime/mutexLocker.cpp src/share/vm/runtime/mutexLocker.hpp
diffstat 3 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/mutex.cpp	Fri Feb 01 12:49:39 2013 -0800
+++ b/src/share/vm/runtime/mutex.cpp	Fri Jan 18 13:43:56 2013 +0100
@@ -1312,7 +1312,7 @@
           this->rank() != Mutex::suspend_resume &&
           locks != NULL && locks->rank() <= this->rank() &&
           !SafepointSynchronize::is_at_safepoint() &&
-          this != Interrupt_lock && this != ProfileVM_lock &&
+          this != Interrupt_lock &&
           !(this == Safepoint_lock && contains(locks, Terminator_lock) &&
             SafepointSynchronize::is_synchronizing())) {
         new_owner->print_owned_locks();
--- a/src/share/vm/runtime/mutexLocker.cpp	Fri Feb 01 12:49:39 2013 -0800
+++ b/src/share/vm/runtime/mutexLocker.cpp	Fri Jan 18 13:43:56 2013 +0100
@@ -103,7 +103,6 @@
 Monitor* BeforeExit_lock              = NULL;
 Monitor* Notify_lock                  = NULL;
 Monitor* Interrupt_lock               = NULL;
-Monitor* ProfileVM_lock               = NULL;
 Mutex*   ProfilePrint_lock            = NULL;
 Mutex*   ExceptionCache_lock          = NULL;
 Monitor* ObjAllocPost_lock            = NULL;
@@ -279,7 +278,6 @@
   def(MethodCompileQueue_lock      , Monitor, nonleaf+4,   true );
   def(Debug2_lock                  , Mutex  , nonleaf+4,   true );
   def(Debug3_lock                  , Mutex  , nonleaf+4,   true );
-  def(ProfileVM_lock               , Monitor, special,   false); // used for profiling of the VMThread
   def(CompileThread_lock           , Monitor, nonleaf+5,   false );
 
   def(JfrMsg_lock                  , Monitor, nonleaf+2,   true);
--- a/src/share/vm/runtime/mutexLocker.hpp	Fri Feb 01 12:49:39 2013 -0800
+++ b/src/share/vm/runtime/mutexLocker.hpp	Fri Jan 18 13:43:56 2013 +0100
@@ -108,7 +108,6 @@
 extern Monitor* BeforeExit_lock;                 // a lock used to guard cleanups and shutdown hooks
 extern Monitor* Notify_lock;                     // a lock used to synchronize the start-up of the vm
 extern Monitor* Interrupt_lock;                  // a lock used for condition variable mediated interrupt processing
-extern Monitor* ProfileVM_lock;                  // a lock used for profiling the VMThread
 extern Mutex*   ProfilePrint_lock;               // a lock used to serialize the printing of profiles
 extern Mutex*   ExceptionCache_lock;             // a lock used to synchronize exception cache updates
 extern Mutex*   OsrList_lock;                    // a lock used to serialize access to OSR queues