--- old/src/hotspot/share/gc/z/zMarkStackAllocator.cpp 2019-11-21 11:53:12.270968434 +0100 +++ new/src/hotspot/share/gc/z/zMarkStackAllocator.cpp 2019-11-21 11:53:12.014964252 +0100 @@ -110,8 +110,8 @@ // Increment top before end to make sure another // thread can't steal out newly expanded space. - addr = Atomic::add(size, &_top) - size; - Atomic::add(expand_size, &_end); + addr = Atomic::add(&_top, size) - size; + Atomic::add(&_end, expand_size); return addr; }