8009578: [parfait] Null pointer deference in hotspot/src/share/vm/classfile/defaultMethods.cpp
Summary: add guarantee() to disqualify_method()
Reviewed-by: kvn
--- a/hotspot/src/share/vm/classfile/defaultMethods.cpp Wed Mar 20 06:36:04 2013 -0700
+++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp Wed Mar 20 06:38:27 2013 -0700
@@ -348,7 +348,7 @@
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;
}