--- old/src/hotspot/share/opto/runtime.cpp 2019-11-21 11:58:20.996176744 +0100 +++ new/src/hotspot/share/opto/runtime.cpp 2019-11-21 11:58:20.524168774 +0100 @@ -1659,7 +1659,7 @@ c->set_next(NULL); head = _named_counters; c->set_next(head); - } while (Atomic::cmpxchg(c, &_named_counters, head) != head); + } while (Atomic::cmpxchg(&_named_counters, head, c) != head); return c; }