8186666: Bug in the C2 matcher code
Summary: Correctly used Op_WeakCompareAndSwapI as required
Reviewed-by: shade, thartmann
Contributed-by: Andrew Haley <aph@redhat.com>
--- a/hotspot/src/share/vm/opto/c2compiler.cpp Mon Aug 28 01:09:14 2017 +0000
+++ b/hotspot/src/share/vm/opto/c2compiler.cpp Mon Aug 28 02:55:31 2017 -0700
@@ -283,7 +283,7 @@
case vmIntrinsics::_weakCompareAndSetIntAcquire:
case vmIntrinsics::_weakCompareAndSetIntRelease:
case vmIntrinsics::_weakCompareAndSetInt:
- if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapL)) return false;
+ if (!Matcher::match_rule_supported(Op_WeakCompareAndSwapI)) return false;
break;
/* CompareAndSet, Byte: */