< prev index next >

src/hotspot/share/runtime/mutex.hpp

Print this page
rev 56448 : imported patch monitor_contended

@@ -150,10 +150,13 @@
   void lock(Thread *thread); // overloaded with current thread
   void unlock();
   bool is_locked() const                     { return _owner != NULL; }
 
   bool try_lock(); // Like lock(), but unblocking. It returns false instead
+ private:
+  void lock_contended(Thread *thread); // contended slow-path
+ public:
 
   void release_for_safepoint();
 
   // Lock without safepoint check. Should ONLY be used by safepoint code and other code
   // that is guaranteed not to block while running inside the VM.
< prev index next >