8139042: AARCH64: Correct regression introduced by 8080293
authoradinn
Wed, 07 Oct 2015 06:56:58 -0400
changeset 33090 141ffb78d088
parent 33089 f4e956ed8b43
child 33091 275888dd277e
child 33157 841ec4c08d57
child 33158 f4e6c593ba73
8139042: AARCH64: Correct regression introduced by 8080293 Summary: Reinstate unsafe volatile optimization broken by JDK-8080293 Reviewed-by: aph, kvn
hotspot/src/cpu/aarch64/vm/aarch64.ad
--- 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;
     }
   }