hotspot/src/share/vm/opto/ifnode.cpp
changeset 35574 2b25eb88c8d6
parent 35552 be1bff8945dc
child 36336 7006dd73b206
--- a/hotspot/src/share/vm/opto/ifnode.cpp	Mon Jan 18 08:34:14 2016 +0100
+++ b/hotspot/src/share/vm/opto/ifnode.cpp	Mon Jan 18 08:40:25 2016 +0100
@@ -1104,7 +1104,8 @@
         if (ctrl == fail) {
           Node* init_n = stack.node_at(1);
           assert(init_n->Opcode() == Op_ConvI2L, "unexpected first node");
-          Node* new_n = igvn->C->conv_I2X_index(igvn, l, array_size);
+          // Create a new narrow ConvI2L node that is dependent on the range check
+          Node* new_n = igvn->C->conv_I2X_index(igvn, l, array_size, fail);
 
           // The type of the ConvI2L may be widen and so the new
           // ConvI2L may not be better than an existing ConvI2L