提交 e1ef4767 编写于 作者: K kvn

6880052: SIGSEGV in GraphKit::null_check_common()

Summary: Check that a klass is not NULL before the is_loaded() call.
Reviewed-by: never
上级 ec425ceb
......@@ -1126,7 +1126,7 @@ Node* GraphKit::null_check_common(Node* value, BasicType type,
const Type *t = _gvn.type( value );
const TypeOopPtr* tp = t->isa_oopptr();
if (tp != NULL && !tp->klass()->is_loaded()
if (tp != NULL && tp->klass() != NULL && !tp->klass()->is_loaded()
// Only for do_null_check, not any of its siblings:
&& !assert_null && null_control == NULL) {
// Usually, any field access or invocation on an unloaded oop type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册