8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp
Added guarantee() to print_entry_on() Reviewed-by: kvn
This commit is contained in:
parent
85aa7836de
commit
6c55facb77
@ -1852,6 +1852,7 @@ void ConstantPool::print_entry_on(const int index, outputStream* st) {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user