8172145: C2: anti dependence missed because store hidden by membar
Reviewed-by: kvn
--- a/hotspot/src/share/vm/adlc/formssel.cpp Tue Jan 03 12:25:19 2017 +0100
+++ b/hotspot/src/share/vm/adlc/formssel.cpp Tue Jan 03 11:22:37 2017 +0100
@@ -650,6 +650,7 @@
if( strcmp(_matrule->_opType,"MemBarReleaseLock") == 0 ) return true;
if( strcmp(_matrule->_opType,"MemBarAcquireLock") == 0 ) return true;
if( strcmp(_matrule->_opType,"MemBarStoreStore") == 0 ) return true;
+ if( strcmp(_matrule->_opType,"MemBarVolatile") == 0 ) return true;
if( strcmp(_matrule->_opType,"StoreFence") == 0 ) return true;
if( strcmp(_matrule->_opType,"LoadFence") == 0 ) return true;