提交 73393d09 编写于 作者: M morris

8009565: [partfait] Null pointer deference in hotspot/src/share/vm/ci/ciEnv.cpp

Summary: add guarantee() to get_instance_klass_for_declared_method_holder()
Reviewed-by: kvn
上级 dd1e44d6
......@@ -802,6 +802,7 @@ ciInstanceKlass* ciEnv::get_instance_klass_for_declared_method_holder(ciKlass* m
// require checks to make sure the expected type was found. Given that this
// only occurs for clone() the more extensive fix seems like overkill so
// instead we simply smear the array type into Object.
guarantee(method_holder != NULL, "no method holder");
if (method_holder->is_instance_klass()) {
return method_holder->as_instance_klass();
} else if (method_holder->is_array_klass()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册