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

Add guarantee() to disqualify_method()

Reviewed-by: kvn
This commit is contained in:
Morris Meyer 2013-03-20 06:38:27 -07:00
parent 5082c639fd
commit 09098aff2f

View File

@ -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;
}