8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp
authormorris
Thu, 21 Mar 2013 10:13:56 -0700
changeset 16383 57cb9d398a11
parent 16382 6d063103018a
child 16384 6f0d2de1c569
child 16612 f18f6b86061c
child 16613 58c6d72ad0ef
8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp Summary: added guarantee() to print_entry_on() Reviewed-by: kvn
hotspot/src/share/vm/oops/constantPool.cpp
--- a/hotspot/src/share/vm/oops/constantPool.cpp	Thu Mar 21 10:11:24 2013 -0700
+++ b/hotspot/src/share/vm/oops/constantPool.cpp	Thu Mar 21 10:13:56 2013 -0700
@@ -1852,6 +1852,7 @@
   switch (tag_at(index).value()) {
     case JVM_CONSTANT_Class :
       { Klass* k = klass_at(index, CATCH);
+        guarantee(k != NULL, "need klass");
         k->print_value_on(st);
         st->print(" {0x%lx}", (address)k);
       }