8042786: Proper fix for 8032566

Check for overflow cases in range checks and collapse it if we can.

Reviewed-by: jrose, iveresov
This commit is contained in:
Vladimir Kozlov 2014-05-16 12:05:14 -07:00
parent a354960abb
commit 6bfc0288f3
7 changed files with 101 additions and 5 deletions

View file

@ -391,7 +391,7 @@ void LateInlineCallGenerator::do_late_inline() {
}
// Setup default node notes to be picked up by the inlining
Node_Notes* old_nn = C->default_node_notes();
Node_Notes* old_nn = C->node_notes_at(call->_idx);
if (old_nn != NULL) {
Node_Notes* entry_nn = old_nn->clone(C);
entry_nn->set_jvms(jvms);