< prev index next >

src/hotspot/share/gc/z/zLock.inline.hpp

Print this page

        

*** 75,84 **** --- 75,96 ---- Thread* const thread = Thread::current(); Thread* const owner = Atomic::load(&_owner); return owner == thread; } + inline void ZNoLock::lock() { + // Does nothing + } + + inline bool ZNoLock::try_lock() { + return true; + } + + inline void ZNoLock::unlock() { + // Does nothing + } + template <typename T> inline ZLocker<T>::ZLocker(T* lock) : _lock(lock) { _lock->lock(); }
< prev index next >