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:
parent
5082c639fd
commit
09098aff2f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user