changeset 4347:c3c64a973559

8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp Summary: added guarantee() to print_entry_on() Reviewed-by: kvn
author morris
date Thu, 21 Mar 2013 10:13:56 -0700
parents 589aa23334ea
children 3536ea6bc4df a57fc14f798a e370f63dc5b1
files src/share/vm/oops/constantPool.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/constantPool.cpp	Thu Mar 21 10:11:24 2013 -0700
+++ b/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);
       }