< prev index next >

src/hotspot/share/gc/z/zStat.cpp

Print this page

        

@@ -770,11 +770,11 @@
       // Not max
       break;
     }
 
     const uint64_t new_max = value;
-    const uint64_t prev_max = Atomic::cmpxchg(new_max, &cpu_data->_max, max);
+    const uint64_t prev_max = Atomic::cmpxchg(&cpu_data->_max, max, new_max);
     if (prev_max == max) {
       // Success
       break;
     }
 
< prev index next >