8186666: Bug in the C2 matcher code
authorrraghavan
Mon, 28 Aug 2017 02:55:31 -0700
changeset 46992 95000145dd81
parent 46991 e6b39bf0462c
child 46993 dd0f91c85ffc
child 46994 7663ce98384b
child 46996 9cbcd7082efe
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>
hotspot/src/share/vm/opto/c2compiler.cpp
--- 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: */