changeset 46992:95000145dd81

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 e6b39bf0462c
children dd0f91c85ffc 7663ce98384b 9cbcd7082efe
files hotspot/src/share/vm/opto/c2compiler.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: */