# HG changeset patch # User iveresov # Date 1407976631 25200 # Node ID fb971e09d20f89e50f3c8e02a49667b9fd27b831 # Parent 92baebeb744b69baa99de5692d67544064591bb9 8054883: Segmentation error while running program Summary: Fix pattern matching of range check Reviewed-by: kvn diff -r 92baebeb744b -r fb971e09d20f src/share/vm/opto/ifnode.cpp --- a/src/share/vm/opto/ifnode.cpp Tue Aug 12 20:29:25 2014 -0400 +++ b/src/share/vm/opto/ifnode.cpp Wed Aug 13 17:37:11 2014 -0700 @@ -503,7 +503,7 @@ jint off = 0; if (l->is_top()) { return 0; - } else if (l->is_Add()) { + } else if (l->Opcode() == Op_AddI) { if ((off = l->in(1)->find_int_con(0)) != 0) { ind = l->in(2); } else if ((off = l->in(2)->find_int_con(0)) != 0) {