--- old/src/hotspot/share/gc/z/zRelocationSet.inline.hpp 2019-11-21 11:53:13.986996466 +0100 +++ new/src/hotspot/share/gc/z/zRelocationSet.inline.hpp 2019-11-21 11:53:13.726992218 +0100 @@ -38,7 +38,7 @@ if (parallel) { if (_next < nforwardings) { - const size_t next = Atomic::add(1u, &_next) - 1u; + const size_t next = Atomic::add(&_next, 1u) - 1u; if (next < nforwardings) { *forwarding = _relocation_set->_forwardings[next]; return true;