changeset 4343:653d0346aa80

8009578: [parfait] Null pointer deference in hotspot/src/share/vm/classfile/defaultMethods.cpp Summary: add guarantee() to disqualify_method() Reviewed-by: kvn
author morris
date Wed, 20 Mar 2013 06:38:27 -0700
parents 2dec1d9bfbe1
children a59625d96f71
files src/share/vm/classfile/defaultMethods.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/defaultMethods.cpp	Wed Mar 20 06:36:04 2013 -0700
+++ b/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;
   }