equal
deleted
inserted
replaced
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 } |