hotspot/src/share/vm/opto/phaseX.cpp
changeset 23525 e3eb08ead679
parent 22799 83e58bac7980
child 23528 8f1a7f5e8066
equal deleted inserted replaced
23524:2a2aa2a6b3c3 23525:e3eb08ead679
   328 #ifdef ASSERT
   328 #ifdef ASSERT
   329   uint max = size();
   329   uint max = size();
   330   Node *sentinel_node = sentinel();
   330   Node *sentinel_node = sentinel();
   331   for (uint i = 0; i < max; ++i) {
   331   for (uint i = 0; i < max; ++i) {
   332     Node *n = at(i);
   332     Node *n = at(i);
   333     if(n != NULL && n != sentinel_node && n->is_Type()) {
   333     if(n != NULL && n != sentinel_node && n->is_Type() && n->outcnt() > 0) {
   334       TypeNode* tn = n->as_Type();
   334       TypeNode* tn = n->as_Type();
   335       const Type* t = tn->type();
   335       const Type* t = tn->type();
   336       const Type* t_no_spec = t->remove_speculative();
   336       const Type* t_no_spec = t->remove_speculative();
   337       assert(t == t_no_spec, "dead node in hash table or missed node during speculative cleanup");
   337       assert(t == t_no_spec, "dead node in hash table or missed node during speculative cleanup");
   338     }
   338     }