Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 1388:7666957bc44d
6937142: G1: improvements to debugging output (S-M)
Summary: Various fixes to the G1 debugging output.
Reviewed-by: johnc, iveresov
author | tonyp |
---|---|
date | Tue, 30 Mar 2010 15:43:03 -0400 |
parents | 0bfd3fb24150 |
children | 5dbd9300cf9c |
comparison
equal
deleted
inserted
replaced
1387:0bfd3fb24150 | 1388:7666957bc44d |
---|---|
2395 if (failures) { | 2395 if (failures) { |
2396 gclog_or_tty->print_cr("Heap:"); | 2396 gclog_or_tty->print_cr("Heap:"); |
2397 print_on(gclog_or_tty, true /* extended */); | 2397 print_on(gclog_or_tty, true /* extended */); |
2398 gclog_or_tty->print_cr(""); | 2398 gclog_or_tty->print_cr(""); |
2399 if (VerifyDuringGC && G1VerifyDuringGCPrintReachable) { | 2399 if (VerifyDuringGC && G1VerifyDuringGCPrintReachable) { |
2400 concurrent_mark()->print_reachable(use_prev_marking, | 2400 concurrent_mark()->print_reachable("at-verification-failure", |
2401 "failed-verification"); | 2401 use_prev_marking, false /* all */); |
2402 } | 2402 } |
2403 gclog_or_tty->flush(); | 2403 gclog_or_tty->flush(); |
2404 } | 2404 } |
2405 guarantee(!failures, "there should not have been any failures"); | 2405 guarantee(!failures, "there should not have been any failures"); |
2406 } else { | 2406 } else { |
3116 // we will get a new GC alloc region | 3116 // we will get a new GC alloc region |
3117 alloc_region = newAllocRegionWithExpansion(ap, 0); | 3117 alloc_region = newAllocRegionWithExpansion(ap, 0); |
3118 } else { | 3118 } else { |
3119 // the region was retained from the last collection | 3119 // the region was retained from the last collection |
3120 ++_gc_alloc_region_counts[ap]; | 3120 ++_gc_alloc_region_counts[ap]; |
3121 if (G1PrintHeapRegions) { | |
3122 gclog_or_tty->print_cr("new alloc region %d:["PTR_FORMAT", "PTR_FORMAT"], " | |
3123 "top "PTR_FORMAT, | |
3124 alloc_region->hrs_index(), alloc_region->bottom(), alloc_region->end(), alloc_region->top()); | |
3125 } | |
3121 } | 3126 } |
3122 | 3127 |
3123 if (alloc_region != NULL) { | 3128 if (alloc_region != NULL) { |
3124 assert(_gc_alloc_regions[ap] == NULL, "pre-condition"); | 3129 assert(_gc_alloc_regions[ap] == NULL, "pre-condition"); |
3125 set_gc_alloc_region(ap, alloc_region); | 3130 set_gc_alloc_region(ap, alloc_region); |