< prev index next >

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

Print this page

        

@@ -74,11 +74,11 @@
   return false;
 }
 
 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() {
   return inc_refcount();
 }
< prev index next >