提交 585a0285 编写于 作者: M morris

8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp

Summary: added guarantee() to print_entry_on()
Reviewed-by: kvn
上级 4e37de86
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册