--- old/src/hotspot/share/services/mallocSiteTable.hpp 2019-11-21 11:53:19.339083892 +0100 +++ new/src/hotspot/share/services/mallocSiteTable.hpp 2019-11-21 11:53:19.087079774 +0100 @@ -153,7 +153,7 @@ // Acquire shared lock. // Return true if shared access is granted. inline bool sharedLock() { - jint res = Atomic::add(1, _lock); + jint res = Atomic::add(_lock, 1); if (res < 0) { Atomic::dec(_lock); return false;