6937142: G1: improvements to debugging output (S-M)

Various fixes to the G1 debugging output.

Reviewed-by: johnc, iveresov
This commit is contained in:
Antonios Printezis 2010-03-30 15:43:03 -04:00
parent f5197d0d36
commit 9b4fc8fc23
5 changed files with 133 additions and 88 deletions

View file

@ -2942,10 +2942,11 @@ record_concurrent_mark_cleanup_end(size_t freed_bytes,
void G1CollectorPolicy::
add_to_collection_set(HeapRegion* hr) {
if (G1PrintHeapRegions) {
gclog_or_tty->print_cr("added region to cset %d:["PTR_FORMAT", "PTR_FORMAT"], "
"top "PTR_FORMAT", young %s",
hr->hrs_index(), hr->bottom(), hr->end(),
hr->top(), (hr->is_young()) ? "YES" : "NO");
gclog_or_tty->print_cr("added region to cset "
"%d:["PTR_FORMAT", "PTR_FORMAT"], "
"top "PTR_FORMAT", %s",
hr->hrs_index(), hr->bottom(), hr->end(),
hr->top(), hr->is_young() ? "YOUNG" : "NOT_YOUNG");
}
if (_g1->mark_in_progress())