< prev index next >

src/hotspot/share/jfr/utilities/jfrAllocation.cpp

Print this page

        

@@ -39,11 +39,11 @@
   jlong compare_value;
   jlong exchange_value;
   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;
 }
 
 // debug statistics
 static volatile jlong _allocated_bytes = 0;
< prev index next >