Mercurial > hg > graal-jvmci-8
diff src/share/vm/ci/ciMethodData.hpp @ 13080:6e1826d5c23e
8027572: assert(r != 0) failed: invalid
Summary: null classes should be expected in profiles with conflicts
Reviewed-by: kvn, iveresov
author | roland |
---|---|
date | Wed, 13 Nov 2013 13:45:50 +0100 |
parents | b2ee5dc63353 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciMethodData.hpp Wed Nov 13 01:50:14 2013 -0800 +++ b/src/share/vm/ci/ciMethodData.hpp Wed Nov 13 13:45:50 2013 +0100 @@ -77,7 +77,9 @@ static ciKlass* valid_ciklass(intptr_t k) { if (!TypeEntries::is_type_none(k) && !TypeEntries::is_type_unknown(k)) { - return (ciKlass*)TypeEntries::klass_part(k); + ciKlass* res = (ciKlass*)TypeEntries::klass_part(k); + assert(res != NULL, "invalid"); + return res; } else { return NULL; }