changeset 13614:18bf814595b9

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>
author rraghavan
date Mon, 28 Aug 2017 02:55:31 -0700
parents ec4c21cf8ba1
children d78407f77172 ecebbbda267a c5c6aa319333
files src/share/vm/opto/c2compiler.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/c2compiler.cpp	Mon Aug 28 01:09:14 2017 +0000
+++ b/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: */