8139042: AARCH64: Correct regression introduced by 8080293

Reinstate unsafe volatile optimization broken by JDK-8080293

Reviewed-by: aph, kvn
This commit is contained in:
Andrew Dinn 2015-10-07 06:56:58 -04:00
parent 5a633b1cbd
commit bf99cd983a

View File

@ -2556,7 +2556,7 @@ bool unnecessary_acquire(const Node *barrier)
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;
}
}