--- old/src/hotspot/share/gc/shared/preservedMarks.cpp 2019-11-21 11:57:25.855245475 +0100 +++ new/src/hotspot/share/gc/shared/preservedMarks.cpp 2019-11-21 11:57:25.427238245 +0100 @@ -55,7 +55,7 @@ restore(); // Only do the atomic add if the size is > 0. if (stack_size > 0) { - Atomic::add(stack_size, total_size_addr); + Atomic::add(total_size_addr, stack_size); } }