equal
deleted
inserted
replaced
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); |