--- old/src/hotspot/share/runtime/threadSMR.cpp 2019-11-21 11:55:39.749452499 +0100 +++ new/src/hotspot/share/runtime/threadSMR.cpp 2019-11-21 11:55:39.493448171 +0100 @@ -156,7 +156,7 @@ // No need to update max value so we're done. break; } - if (Atomic::cmpxchg(new_value, &_deleted_thread_time_max, cur_value) == cur_value) { + if (Atomic::cmpxchg(&_deleted_thread_time_max, cur_value, new_value) == cur_value) { // Updated max value so we're done. Otherwise try it all again. break; }