--- old/src/hotspot/share/interpreter/bytecodeInterpreter.cpp 2019-11-21 11:55:21.113137450 +0100 +++ new/src/hotspot/share/interpreter/bytecodeInterpreter.cpp 2019-11-21 11:55:20.857133122 +0100 @@ -2163,7 +2163,7 @@ HeapWord* compare_to = *Universe::heap()->top_addr(); HeapWord* new_top = compare_to + obj_size; if (new_top <= *Universe::heap()->end_addr()) { - if (Atomic::cmpxchg(new_top, Universe::heap()->top_addr(), compare_to) != compare_to) { + if (Atomic::cmpxchg(Universe::heap()->top_addr(), compare_to, new_top) != compare_to) { goto retry; } result = (oop) compare_to;