< prev index next >

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

Print this page

        

*** 51,61 **** Thread* const thread = Thread::current(); Thread* const owner = Atomic::load(&_owner); if (owner != thread) { _lock.lock(); ! Atomic::store(thread, &_owner); } _count++; } --- 51,61 ---- Thread* const thread = Thread::current(); Thread* const owner = Atomic::load(&_owner); if (owner != thread) { _lock.lock(); ! Atomic::store(&_owner, thread); } _count++; }
*** 64,74 **** assert(_count > 0, "Invalid count"); _count--; if (_count == 0) { ! Atomic::store((Thread*)NULL, &_owner); _lock.unlock(); } } inline bool ZReentrantLock::is_owned() const { --- 64,74 ---- assert(_count > 0, "Invalid count"); _count--; if (_count == 0) { ! Atomic::store(&_owner, (Thread*)NULL); _lock.unlock(); } } inline bool ZReentrantLock::is_owned() const {
< prev index next >