< prev index next >

src/hotspot/share/runtime/mutex.hpp

Print this page
rev 56464 : 8231707: Improve Mutex inlining
Reviewed-by: coleenp, rehn

*** 150,159 **** --- 150,162 ---- 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 >