changeset 59250 | a6deb69743d4 |
parent 59248 | e92153ed8bdc |
child 59252 | 623722a6aeb9 |
--- a/src/hotspot/share/gc/z/zForwarding.inline.hpp Mon Nov 25 12:31:39 2019 +0100 +++ b/src/hotspot/share/gc/z/zForwarding.inline.hpp Mon Nov 25 12:32:07 2019 +0100 @@ -76,7 +76,7 @@ inline bool ZForwarding::dec_refcount() { assert(_refcount > 0, "Invalid state"); - return Atomic::sub(1u, &_refcount) == 0u; + return Atomic::sub(&_refcount, 1u) == 0u; } inline bool ZForwarding::retain_page() {