提交 be7b8480 编写于 作者: M morris

8009578: [parfait] Null pointer deference in hotspot/src/share/vm/classfile/defaultMethods.cpp

Summary: add guarantee() to disqualify_method()
Reviewed-by: kvn
上级 73393d09
......@@ -348,7 +348,7 @@ class MethodFamily : public ResourceObj {
void disqualify_method(Method* method) {
int* index = _member_index.get(method);
assert(index != NULL && *index >= 0 && *index < _members.length(), "bad index");
guarantee(index != NULL && *index >= 0 && *index < _members.length(), "bad index");
_members.at(*index).second = DISQUALIFIED;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册