8198950: AArch64: org.openjdk.jcstress.tests.varhandles.DekkerTest fails

Fix breakage to AArch64 code generation caused by JDK-8181211

Reviewed-by: thartmann, roland, kvn, vlivanov, jrose
This commit is contained in:
Andrew Dinn 2018-03-05 13:18:55 +00:00
parent e01220f767
commit b473be9a41

View File

@ -2578,7 +2578,8 @@ bool LibraryCallKit::inline_unsafe_access(bool is_store, const BasicType type, c
// the one that guards them: pin the Load node
LoadNode::ControlDependency dep = LoadNode::Pinned;
Node* ctrl = control();
if (adr_type->isa_instptr()) {
// non volatile loads may be able to float
if (!need_mem_bar && adr_type->isa_instptr()) {
assert(adr_type->meet(TypePtr::NULL_PTR) != adr_type->remove_speculative(), "should be not null");
intptr_t offset = Type::OffsetBot;
AddPNode::Ideal_base_and_offset(adr, &_gvn, offset);