src/hotspot/share/jfr/utilities/jfrAllocation.cpp
changeset 59252 623722a6aeb9
parent 58863 c16ac7a2eba4
--- a/src/hotspot/share/jfr/utilities/jfrAllocation.cpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/jfr/utilities/jfrAllocation.cpp	Mon Nov 25 12:33:15 2019 +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;
 }