src/hotspot/share/jfr/utilities/jfrAllocation.cpp
changeset 58863 c16ac7a2eba4
parent 50714 2230bb152a9f
child 59252 623722a6aeb9
--- 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;