src/hotspot/share/code/dependencyContext.cpp
changeset 59247 56bf71d64d51
parent 52819 022420a4cc63
child 59248 e92153ed8bdc
--- a/src/hotspot/share/code/dependencyContext.cpp	Mon Nov 25 14:06:13 2019 +0100
+++ b/src/hotspot/share/code/dependencyContext.cpp	Mon Nov 25 12:22:13 2019 +0100
@@ -281,7 +281,7 @@
 nmethodBucket* DependencyContext::dependencies_not_unloading() {
   for (;;) {
     // Need acquire becase the read value could come from a concurrent insert.
-    nmethodBucket* head = OrderAccess::load_acquire(_dependency_context_addr);
+    nmethodBucket* head = Atomic::load_acquire(_dependency_context_addr);
     if (head == NULL || !head->get_nmethod()->is_unloading()) {
       return head;
     }