diff -r 4cbfa5077d68 -r 623722a6aeb9 src/hotspot/share/opto/runtime.cpp --- a/src/hotspot/share/opto/runtime.cpp Mon Nov 25 12:32:40 2019 +0100 +++ b/src/hotspot/share/opto/runtime.cpp Mon Nov 25 12:33:15 2019 +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; }