Commit 59d085a 1 parent 960d5b8 commit 59d085a Copy full SHA for 59d085a
File tree 1 file changed +13
-2
lines changed
src/hotspot/share/runtime
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -576,10 +576,21 @@ void frame::interpreter_frame_print_on(outputStream* st) const {
576
576
current < interpreter_frame_monitor_begin ();
577
577
current = next_monitor_in_interpreter_frame (current)) {
578
578
st->print (" - obj [%s" , current->obj () == nullptr ? " null" : " " );
579
- if (current->obj () != nullptr ) current->obj ()->print_value_on (st);
579
+ oop obj = current->obj ();
580
+ if (obj != nullptr ) {
581
+ if (!is_heap_frame ()) {
582
+ obj->print_value_on (st);
583
+ } else {
584
+ // Might be an invalid oop. We don't have the
585
+ // stackChunk to correct it so just print address.
586
+ st->print (INTPTR_FORMAT, p2i (obj));
587
+ }
588
+ }
580
589
st->print_cr (" ]" );
581
590
st->print (" - lock [" );
582
- current->lock ()->print_on (st, current->obj ());
591
+ if (!is_heap_frame ()) {
592
+ current->lock ()->print_on (st, obj);
593
+ }
583
594
st->print_cr (" ]" );
584
595
}
585
596
// monitor
You can’t perform that action at this time.
0 commit comments