--- 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;
}