8009578: [parfait] Null pointer deference in hotspot/src/share/vm/classfile/defaultMethods.cpp
authormorris
Wed, 20 Mar 2013 06:38:27 -0700
changeset 16379 02ed75a9a421
parent 16378 453b42d22a85
child 16380 d1e1ca068275
8009578: [parfait] Null pointer deference in hotspot/src/share/vm/classfile/defaultMethods.cpp Summary: add guarantee() to disqualify_method() Reviewed-by: kvn
hotspot/src/share/vm/classfile/defaultMethods.cpp
--- 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;
   }