mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue