# HG changeset patch # User anoll # Date 1398242115 -7200 # Node ID 31e28ee4c9b49c81535eb9fa924596a02b85c182 # Parent 87b5e00100fef6251fd4db8aeaec3cdb6db74e07 8038921: assert(t != NULL) failed: must set before get Summary: Ignore nodes without a type when checking for speculative types in Compile::remove_speculative_types(...). Reviewed-by: kvn, roland Contributed-by: Tobias Hartmann diff -r 87b5e00100fe -r 31e28ee4c9b4 src/share/vm/opto/compile.cpp --- a/src/share/vm/opto/compile.cpp Wed Apr 16 14:49:03 2014 -0700 +++ b/src/share/vm/opto/compile.cpp Wed Apr 23 10:35:15 2014 +0200 @@ -3961,8 +3961,8 @@ worklist.push(root()); for (uint next = 0; next < worklist.size(); ++next) { Node *n = worklist.at(next); - const Type* t = igvn.type(n); - assert(t == t->remove_speculative(), "no more speculative types"); + const Type* t = igvn.type_or_null(n); + assert((t == NULL) || (t == t->remove_speculative()), "no more speculative types"); if (n->is_Type()) { t = n->as_Type()->type(); assert(t == t->remove_speculative(), "no more speculative types");