diff -r 2c3cc4b01880 -r c16ac7a2eba4 src/hotspot/share/jfr/utilities/jfrAllocation.cpp --- a/src/hotspot/share/jfr/utilities/jfrAllocation.cpp Wed Oct 30 16:14:56 2019 +0100 +++ b/src/hotspot/share/jfr/utilities/jfrAllocation.cpp Wed Oct 30 19:43:52 2019 +0100 @@ -28,7 +28,6 @@ #include "logging/log.hpp" #include "memory/allocation.inline.hpp" #include "runtime/atomic.hpp" -#include "runtime/orderAccess.hpp" #include "runtime/vm_version.hpp" #include "utilities/debug.hpp" #include "utilities/macros.hpp" @@ -40,7 +39,7 @@ jlong compare_value; jlong exchange_value; do { - compare_value = OrderAccess::load_acquire(dest); + compare_value = *dest; exchange_value = compare_value + value; } while (Atomic::cmpxchg(exchange_value, dest, compare_value) != compare_value); return exchange_value;