--- old/src/hotspot/share/jfr/utilities/jfrAllocation.cpp 2019-11-21 11:55:24.917201761 +0100 +++ new/src/hotspot/share/jfr/utilities/jfrAllocation.cpp 2019-11-21 11:55:24.657197366 +0100 @@ -41,7 +41,7 @@ do { compare_value = *dest; exchange_value = compare_value + value; - } while (Atomic::cmpxchg(exchange_value, dest, compare_value) != compare_value); + } while (Atomic::cmpxchg(dest, compare_value, exchange_value) != compare_value); return exchange_value; }