--- old/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdBits.inline.hpp 2019-11-21 11:55:22.833166529 +0100 +++ new/src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdBits.inline.hpp 2019-11-21 11:55:22.625163012 +0100 @@ -62,7 +62,7 @@ do { const jbyte current = *dest; const jbyte new_value = op(current, bits); - if (Atomic::cmpxchg(new_value, dest, current) == current) { + if (Atomic::cmpxchg(dest, current, new_value) == current) { return; } } while (true);