--- a/src/hotspot/share/opto/graphKit.cpp Wed Aug 22 13:01:26 2018 +0200
+++ b/src/hotspot/share/opto/graphKit.cpp Wed Aug 22 13:06:33 2018 +0200
@@ -1595,6 +1595,23 @@
}
}
+Node* GraphKit::access_load(Node* adr, // actual adress to load val at
+ const Type* val_type,
+ BasicType bt,
+ DecoratorSet decorators) {
+ if (stopped()) {
+ return top(); // Dead path ?
+ }
+
+ C2AccessValuePtr addr(adr, NULL);
+ C2Access access(this, decorators | C2_READ_ACCESS, bt, NULL, addr);
+ if (access.is_raw()) {
+ return _barrier_set->BarrierSetC2::load_at(access, val_type);
+ } else {
+ return _barrier_set->load_at(access, val_type);
+ }
+}
+
Node* GraphKit::access_atomic_cmpxchg_val_at(Node* ctl,
Node* obj,
Node* adr,