< prev index next >

src/hotspot/share/opto/callnode.cpp

Print this page

        

*** 1439,1450 **** // Return NULL if new nodes are not allowed if (!allow_new_nodes) return NULL; // Create a cast which is control dependent on the initialization to // propagate the fact that the array length must be positive. length = new CastIINode(length, narrow_length_type); ! length->set_req(0, initialization()->proj_out_or_null(0)); } } return length; } --- 1439,1452 ---- // Return NULL if new nodes are not allowed if (!allow_new_nodes) return NULL; // Create a cast which is control dependent on the initialization to // propagate the fact that the array length must be positive. + InitializeNode* init = initialization(); + assert(init != NULL, "initialization not found"); length = new CastIINode(length, narrow_length_type); ! length->set_req(0, init->proj_out_or_null(0)); } } return length; }
< prev index next >