8139042: AARCH64: Correct regression introduced by 8080293
Summary: Reinstate unsafe volatile optimization broken by JDK-8080293
Reviewed-by: aph, kvn
--- a/hotspot/src/cpu/aarch64/vm/aarch64.ad Mon Oct 05 20:02:40 2015 -0700
+++ b/hotspot/src/cpu/aarch64/vm/aarch64.ad Wed Oct 07 06:56:58 2015 -0400
@@ -2556,7 +2556,7 @@
if (ld == NULL) {
// check for a child cpuorder membar
MemBarNode *child = child_membar(barrier->as_MemBar());
- if (child && child->Opcode() != Op_MemBarCPUOrder)
+ if (child && child->Opcode() == Op_MemBarCPUOrder)
return true;
}
}