src/hotspot/share/runtime/threadSMR.inline.hpp
changeset 59252 623722a6aeb9
parent 59249 29b0d0b61615
--- a/src/hotspot/share/runtime/threadSMR.inline.hpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/runtime/threadSMR.inline.hpp	Mon Nov 25 12:33:15 2019 +0100
@@ -70,7 +70,7 @@
       // No need to update max value so we're done.
       break;
     }
-    if (Atomic::cmpxchg(new_value, &_tlh_time_max, cur_value) == cur_value) {
+    if (Atomic::cmpxchg(&_tlh_time_max, cur_value, new_value) == cur_value) {
       // Updated max value so we're done. Otherwise try it all again.
       break;
     }