changeset 4342:2dec1d9bfbe1

8009565: [partfait] Null pointer deference in hotspot/src/share/vm/ci/ciEnv.cpp Summary: add guarantee() to get_instance_klass_for_declared_method_holder() Reviewed-by: kvn
author morris
date Wed, 20 Mar 2013 06:36:04 -0700
parents 41340544e182
children 653d0346aa80
files src/share/vm/ci/ciEnv.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/ci/ciEnv.cpp	Wed Mar 20 06:32:49 2013 -0700
+++ b/src/share/vm/ci/ciEnv.cpp	Wed Mar 20 06:36:04 2013 -0700
@@ -802,6 +802,7 @@
   // require checks to make sure the expected type was found.  Given that this
   // only occurs for clone() the more extensive fix seems like overkill so
   // instead we simply smear the array type into Object.
+  guarantee(method_holder != NULL, "no method holder");
   if (method_holder->is_instance_klass()) {
     return method_holder->as_instance_klass();
   } else if (method_holder->is_array_klass()) {