--- old/src/hotspot/share/runtime/deoptimization.cpp 2019-11-21 11:55:36.453396782 +0100 +++ new/src/hotspot/share/runtime/deoptimization.cpp 2019-11-21 11:55:36.193392386 +0100 @@ -869,7 +869,7 @@ static BoxCache* singleton(Thread* thread) { if (_singleton == NULL) { BoxCache* s = new BoxCache(thread); - if (!Atomic::replace_if_null(s, &_singleton)) { + if (!Atomic::replace_if_null(&_singleton, s)) { delete s; } } @@ -923,7 +923,7 @@ static BooleanBoxCache* singleton(Thread* thread) { if (_singleton == NULL) { BooleanBoxCache* s = new BooleanBoxCache(thread); - if (!Atomic::replace_if_null(s, &_singleton)) { + if (!Atomic::replace_if_null(&_singleton, s)) { delete s; } }