diff -r 4cbfa5077d68 -r 623722a6aeb9 src/hotspot/share/runtime/threadSMR.inline.hpp --- 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; }