# HG changeset patch # User iveresov # Date 1407976631 25200 # Node ID 4275dfc461777a9de75954741ba632a7a351bf32 # Parent 7ab032af2835378a21f52c36590d88f4f5f91ef0 8054883: Segmentation error while running program Summary: Fix pattern matching of range check Reviewed-by: kvn diff -r 7ab032af2835 -r 4275dfc46177 hotspot/src/share/vm/opto/ifnode.cpp --- a/hotspot/src/share/vm/opto/ifnode.cpp Wed Aug 13 23:33:33 2014 +0000 +++ b/hotspot/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) {