--- old/src/hotspot/share/jfr/utilities/jfrRefCountPointer.hpp 2019-11-21 11:53:14.867010841 +0100 +++ new/src/hotspot/share/jfr/utilities/jfrRefCountPointer.hpp 2019-11-21 11:53:14.615006724 +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 {