< prev index next >

src/share/vm/gc/g1/g1CollectedHeap.cpp

Print this page




3364             p2i(_hrm.reserved().start()),
3365             p2i(_hrm.reserved().start() + _hrm.length() + HeapRegion::GrainWords),
3366             p2i(_hrm.reserved().end()));
3367   st->cr();
3368   st->print("  region size " SIZE_FORMAT "K, ", HeapRegion::GrainBytes / K);
3369   uint young_regions = _young_list->length();
3370   st->print("%u young (" SIZE_FORMAT "K), ", young_regions,
3371             (size_t) young_regions * HeapRegion::GrainBytes / K);
3372   uint survivor_regions = g1_policy()->recorded_survivor_regions();
3373   st->print("%u survivors (" SIZE_FORMAT "K)", survivor_regions,
3374             (size_t) survivor_regions * HeapRegion::GrainBytes / K);
3375   st->cr();
3376   MetaspaceAux::print_on(st);
3377 }
3378 
3379 void G1CollectedHeap::print_extended_on(outputStream* st) const {
3380   print_on(st);
3381 
3382   // Print the per-region information.
3383   st->cr();
3384   st->print_cr("Heap Regions: (Y=young(eden), SU=young(survivor), "
3385                "HS=humongous(starts), HC=humongous(continues), "
3386                "CS=collection set, F=free, A=archive, TS=gc time stamp, "
3387                "PTAMS=previous top-at-mark-start, "
3388                "NTAMS=next top-at-mark-start)");
3389   PrintRegionClosure blk(st);
3390   heap_region_iterate(&blk);
3391 }
3392 
3393 void G1CollectedHeap::print_on_error(outputStream* st) const {
3394   this->CollectedHeap::print_on_error(st);
3395 
3396   if (_cm != NULL) {
3397     st->cr();
3398     _cm->print_on_error(st);
3399   }
3400 }
3401 
3402 void G1CollectedHeap::print_gc_threads_on(outputStream* st) const {
3403   workers()->print_worker_threads_on(st);
3404   _cmThread->print_on(st);




3364             p2i(_hrm.reserved().start()),
3365             p2i(_hrm.reserved().start() + _hrm.length() + HeapRegion::GrainWords),
3366             p2i(_hrm.reserved().end()));
3367   st->cr();
3368   st->print("  region size " SIZE_FORMAT "K, ", HeapRegion::GrainBytes / K);
3369   uint young_regions = _young_list->length();
3370   st->print("%u young (" SIZE_FORMAT "K), ", young_regions,
3371             (size_t) young_regions * HeapRegion::GrainBytes / K);
3372   uint survivor_regions = g1_policy()->recorded_survivor_regions();
3373   st->print("%u survivors (" SIZE_FORMAT "K)", survivor_regions,
3374             (size_t) survivor_regions * HeapRegion::GrainBytes / K);
3375   st->cr();
3376   MetaspaceAux::print_on(st);
3377 }
3378 
3379 void G1CollectedHeap::print_extended_on(outputStream* st) const {
3380   print_on(st);
3381 
3382   // Print the per-region information.
3383   st->cr();
3384   st->print_cr("Heap Regions: (E=young(eden), S=young(survivor), O=old, "
3385                "HS=humongous(starts), HC=humongous(continues), "
3386                "CS=collection set, F=free, A=archive, TS=gc time stamp, "
3387                "PTAMS=previous top-at-mark-start, "
3388                "NTAMS=next top-at-mark-start)");
3389   PrintRegionClosure blk(st);
3390   heap_region_iterate(&blk);
3391 }
3392 
3393 void G1CollectedHeap::print_on_error(outputStream* st) const {
3394   this->CollectedHeap::print_on_error(st);
3395 
3396   if (_cm != NULL) {
3397     st->cr();
3398     _cm->print_on_error(st);
3399   }
3400 }
3401 
3402 void G1CollectedHeap::print_gc_threads_on(outputStream* st) const {
3403   workers()->print_worker_threads_on(st);
3404   _cmThread->print_on(st);


< prev index next >