# HG changeset patch
# User rraghavan
# Date 1503914131 25200
# Node ID 95000145dd815926f66971b7d2b07ffa5b14520e
# Parent  e6b39bf0462cddd695ef409ae1a5ad6a8375d8c0
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>

diff -r e6b39bf0462c -r 95000145dd81 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: */