8217407: StackValue::print_on() crashes on NULL handle

Reviewed-by: kvn
This commit is contained in:
Vladimir Ivanov 2019-01-18 17:34:43 -08:00
parent 916e43aa9a
commit 8b6ea59715

View File

@ -206,7 +206,11 @@ void StackValue::print_on(outputStream* st) const {
break;
case T_OBJECT:
_handle_value()->print_value_on(st);
if (_handle_value() != NULL) {
_handle_value()->print_value_on(st);
} else {
st->print("NULL");
}
st->print(" <" INTPTR_FORMAT ">", p2i((address)_handle_value()));
break;