--- a/src/hotspot/share/jfr/utilities/jfrAllocation.cpp Sun Sep 15 15:31:04 2019 +0200
+++ b/src/hotspot/share/jfr/utilities/jfrAllocation.cpp Sun Sep 15 20:23:40 2019 +0200
@@ -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 = Atomic::load(dest);
exchange_value = compare_value + value;
} while (Atomic::cmpxchg(exchange_value, dest, compare_value) != compare_value);
return exchange_value;