--- old/src/hotspot/share/jfr/utilities/jfrRefCountPointer.hpp 2019-11-21 11:58:05.027907092 +0100 +++ new/src/hotspot/share/jfr/utilities/jfrRefCountPointer.hpp 2019-11-21 11:58:04.599899865 +0100 @@ -92,11 +92,11 @@ MultiThreadedRefCounter() : _refs(0) {} void inc() const { - Atomic::add(1, &_refs); + Atomic::add(&_refs, 1); } bool dec() const { - return 0 == Atomic::add((-1), &_refs); + return 0 == Atomic::add(&_refs, (-1)); } int current() const {