changeset 5673:c8bba9a51f3d

8054883: Segmentation error while running program Summary: Fix pattern matching of range check Reviewed-by: kvn
author dbuck
date Tue, 19 Aug 2014 10:03:45 -0700
parents cc4490811789
children b577ea5b8da4
files src/share/vm/opto/ifnode.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/ifnode.cpp	Wed Sep 03 22:54:21 2014 -0700
+++ b/src/share/vm/opto/ifnode.cpp	Tue Aug 19 10:03:45 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -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) {