changeset 23525 | e3eb08ead679 |
parent 22799 | 83e58bac7980 |
child 23528 | 8f1a7f5e8066 |
--- a/hotspot/src/share/vm/opto/phaseX.cpp Sat Mar 29 14:54:48 2014 +0400 +++ b/hotspot/src/share/vm/opto/phaseX.cpp Mon Mar 31 09:08:53 2014 +0200 @@ -330,7 +330,7 @@ Node *sentinel_node = sentinel(); for (uint i = 0; i < max; ++i) { Node *n = at(i); - if(n != NULL && n != sentinel_node && n->is_Type()) { + if(n != NULL && n != sentinel_node && n->is_Type() && n->outcnt() > 0) { TypeNode* tn = n->as_Type(); const Type* t = tn->type(); const Type* t_no_spec = t->remove_speculative();