--- old/src/share/vm/opto/phaseX.cpp 2014-03-20 12:32:00.358791380 +0100 +++ new/src/share/vm/opto/phaseX.cpp 2014-03-20 12:31:59.961803539 +0100 @@ -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();