8294580: frame::interpreter_frame_print_on() crashes if free BasicObjectLock exists in frame
Reviewed-by: dholmes, mdoerr
This commit is contained in:
parent
461d9030d8
commit
bdb4ed0fb1
@ -570,8 +570,8 @@ void frame::interpreter_frame_print_on(outputStream* st) const {
|
|||||||
for (BasicObjectLock* current = interpreter_frame_monitor_end();
|
for (BasicObjectLock* current = interpreter_frame_monitor_end();
|
||||||
current < interpreter_frame_monitor_begin();
|
current < interpreter_frame_monitor_begin();
|
||||||
current = next_monitor_in_interpreter_frame(current)) {
|
current = next_monitor_in_interpreter_frame(current)) {
|
||||||
st->print(" - obj [");
|
st->print(" - obj [%s", current->obj() == nullptr ? "null" : "");
|
||||||
current->obj()->print_value_on(st);
|
if (current->obj() != nullptr) current->obj()->print_value_on(st);
|
||||||
st->print_cr("]");
|
st->print_cr("]");
|
||||||
st->print(" - lock [");
|
st->print(" - lock [");
|
||||||
current->lock()->print_on(st, current->obj());
|
current->lock()->print_on(st, current->obj());
|
||||||
|
Loading…
Reference in New Issue
Block a user