< prev index next >
src/share/vm/gc/shenandoah/shenandoahPrinter.cpp
Print this page
rev 14453 : Remove secondary marking bitmap.
*** 44,54 ****
if (o != NULL) {
if (ShenandoahHeap::heap()->is_in(o) && oopDesc::is_oop(o)) {
tty->print_cr("%s "INT32_FORMAT" ("PTR_FORMAT")-> "PTR_FORMAT" (marked: %s) (%s "PTR_FORMAT")",
_prefix, _index,
p2i(p), p2i(o),
! BOOL_TO_STR(ShenandoahHeap::heap()->is_marked_complete(o)),
o->klass()->internal_name(), p2i(o->klass()));
} else {
tty->print_cr("%s "INT32_FORMAT" ("PTR_FORMAT" dirty -> "PTR_FORMAT" (not in heap, possibly corrupted or dirty)",
_prefix, _index,
p2i(p), p2i(o));
--- 44,54 ----
if (o != NULL) {
if (ShenandoahHeap::heap()->is_in(o) && oopDesc::is_oop(o)) {
tty->print_cr("%s "INT32_FORMAT" ("PTR_FORMAT")-> "PTR_FORMAT" (marked: %s) (%s "PTR_FORMAT")",
_prefix, _index,
p2i(p), p2i(o),
! BOOL_TO_STR(ShenandoahHeap::heap()->is_marked(o)),
o->klass()->internal_name(), p2i(o->klass()));
} else {
tty->print_cr("%s "INT32_FORMAT" ("PTR_FORMAT" dirty -> "PTR_FORMAT" (not in heap, possibly corrupted or dirty)",
_prefix, _index,
p2i(p), p2i(o));
*** 77,87 ****
void do_object(oop p) {
if (ShenandoahHeap::heap()->is_in(p)) {
tty->print_cr("%s object "PTR_FORMAT" (marked: %s) (%s "PTR_FORMAT") refers to:",
_prefix, p2i(p),
! BOOL_TO_STR(ShenandoahHeap::heap()->is_marked_complete(p)),
p->klass()->internal_name(), p2i(p->klass()));
ShenandoahPrintAllRefsOopClosure cl(_prefix);
p->oop_iterate(&cl);
}
}
--- 77,87 ----
void do_object(oop p) {
if (ShenandoahHeap::heap()->is_in(p)) {
tty->print_cr("%s object "PTR_FORMAT" (marked: %s) (%s "PTR_FORMAT") refers to:",
_prefix, p2i(p),
! BOOL_TO_STR(ShenandoahHeap::heap()->is_marked(p)),
p->klass()->internal_name(), p2i(p->klass()));
ShenandoahPrintAllRefsOopClosure cl(_prefix);
p->oop_iterate(&cl);
}
}
*** 89,99 ****
void ShenandoahPrinter::print_all_refs(const char* prefix) {
tty->print_cr("printing all references in the heap");
tty->print_cr("root references:");
! _heap->ensure_parsability(false);
ShenandoahPrintAllRefsOopClosure cl(prefix);
_heap->roots_iterate(&cl);
tty->print_cr("heap references:");
--- 89,99 ----
void ShenandoahPrinter::print_all_refs(const char* prefix) {
tty->print_cr("printing all references in the heap");
tty->print_cr("root references:");
! _heap->make_tlabs_parsable(false);
ShenandoahPrintAllRefsOopClosure cl(prefix);
_heap->roots_iterate(&cl);
tty->print_cr("heap references:");
< prev index next >