--- old/src/hotspot/share/memory/universe.cpp 2019-11-21 11:53:16.199032599 +0100 +++ new/src/hotspot/share/memory/universe.cpp 2019-11-21 11:53:15.943028417 +0100 @@ -580,7 +580,7 @@ int next; if ((_preallocated_out_of_memory_error_avail_count > 0) && SystemDictionary::Throwable_klass()->is_initialized()) { - next = (int)Atomic::add(-1, &_preallocated_out_of_memory_error_avail_count); + next = (int)Atomic::add(&_preallocated_out_of_memory_error_avail_count, -1); assert(next < (int)PreallocatedOutOfMemoryErrorCount, "avail count is corrupt"); } else { next = -1;