3300
3301 ~PrintRSetsClosure() {
3302 gclog_or_tty->print_cr("Occupied Sum: "SIZE_FORMAT, _occupied_sum);
3303 gclog_or_tty->print_cr("========================================");
3304 gclog_or_tty->cr();
3305 }
3306 };
3307
3308 void G1CollectedHeap::print_cset_rsets() {
3309 PrintRSetsClosure cl("Printing CSet RSets");
3310 collection_set_iterate(&cl);
3311 }
3312
3313 void G1CollectedHeap::print_all_rsets() {
3314 PrintRSetsClosure cl("Printing All RSets");;
3315 heap_region_iterate(&cl);
3316 }
3317 #endif // PRODUCT
3318
3319 G1CollectedHeap* G1CollectedHeap::heap() {
3320 return _g1h;
3321 }
3322
3323 void G1CollectedHeap::gc_prologue(bool full /* Ignored */) {
3324 // always_do_update_barrier = false;
3325 assert(InlineCacheBuffer::is_empty(), "should have cleaned up ICBuffer");
3326 // Fill TLAB's and such
3327 accumulate_statistics_all_tlabs();
3328 ensure_parsability(true);
3329
3330 if (G1SummarizeRSetStats && (G1SummarizeRSetStatsPeriod > 0) &&
3331 (total_collections() % G1SummarizeRSetStatsPeriod == 0)) {
3332 g1_rem_set()->print_periodic_summary_info("Before GC RS summary");
3333 }
3334 }
3335
3336 void G1CollectedHeap::gc_epilogue(bool full) {
3337
3338 if (G1SummarizeRSetStats &&
3339 (G1SummarizeRSetStatsPeriod > 0) &&
|
3300
3301 ~PrintRSetsClosure() {
3302 gclog_or_tty->print_cr("Occupied Sum: "SIZE_FORMAT, _occupied_sum);
3303 gclog_or_tty->print_cr("========================================");
3304 gclog_or_tty->cr();
3305 }
3306 };
3307
3308 void G1CollectedHeap::print_cset_rsets() {
3309 PrintRSetsClosure cl("Printing CSet RSets");
3310 collection_set_iterate(&cl);
3311 }
3312
3313 void G1CollectedHeap::print_all_rsets() {
3314 PrintRSetsClosure cl("Printing All RSets");;
3315 heap_region_iterate(&cl);
3316 }
3317 #endif // PRODUCT
3318
3319 G1CollectedHeap* G1CollectedHeap::heap() {
3320 assert(_g1h != NULL, "Uninitialized access to G1CollectedHeap::heap()");
3321 assert(_g1h->kind() == CollectedHeap::G1CollectedHeap, "Not a G1 heap");
3322 return _g1h;
3323 }
3324
3325 void G1CollectedHeap::gc_prologue(bool full /* Ignored */) {
3326 // always_do_update_barrier = false;
3327 assert(InlineCacheBuffer::is_empty(), "should have cleaned up ICBuffer");
3328 // Fill TLAB's and such
3329 accumulate_statistics_all_tlabs();
3330 ensure_parsability(true);
3331
3332 if (G1SummarizeRSetStats && (G1SummarizeRSetStatsPeriod > 0) &&
3333 (total_collections() % G1SummarizeRSetStatsPeriod == 0)) {
3334 g1_rem_set()->print_periodic_summary_info("Before GC RS summary");
3335 }
3336 }
3337
3338 void G1CollectedHeap::gc_epilogue(bool full) {
3339
3340 if (G1SummarizeRSetStats &&
3341 (G1SummarizeRSetStatsPeriod > 0) &&
|