2360 st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",
2361 capacity()/K, used_unlocked()/K);
2362 st->print(" [" PTR_FORMAT ", " PTR_FORMAT ")",
2363 p2i(_hrm->reserved().start()),
2364 p2i(_hrm->reserved().end()));
2365 st->cr();
2366 st->print(" region size " SIZE_FORMAT "K, ", HeapRegion::GrainBytes / K);
2367 uint young_regions = young_regions_count();
2368 st->print("%u young (" SIZE_FORMAT "K), ", young_regions,
2369 (size_t) young_regions * HeapRegion::GrainBytes / K);
2370 uint survivor_regions = survivor_regions_count();
2371 st->print("%u survivors (" SIZE_FORMAT "K)", survivor_regions,
2372 (size_t) survivor_regions * HeapRegion::GrainBytes / K);
2373 st->cr();
2374 MetaspaceUtils::print_on(st);
2375 }
2376
2377 void G1CollectedHeap::print_regions_on(outputStream* st) const {
2378 st->print_cr("Heap Regions: E=young(eden), S=young(survivor), O=old, "
2379 "HS=humongous(starts), HC=humongous(continues), "
2380 "CS=collection set, F=free, A=archive, "
2381 "TAMS=top-at-mark-start (previous, next)");
2382 PrintRegionClosure blk(st);
2383 heap_region_iterate(&blk);
2384 }
2385
2386 void G1CollectedHeap::print_extended_on(outputStream* st) const {
2387 print_on(st);
2388
2389 // Print the per-region information.
2390 print_regions_on(st);
2391 }
2392
2393 void G1CollectedHeap::print_on_error(outputStream* st) const {
2394 this->CollectedHeap::print_on_error(st);
2395
2396 if (_cm != NULL) {
2397 st->cr();
2398 _cm->print_on_error(st);
2399 }
2400 }
|
2360 st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",
2361 capacity()/K, used_unlocked()/K);
2362 st->print(" [" PTR_FORMAT ", " PTR_FORMAT ")",
2363 p2i(_hrm->reserved().start()),
2364 p2i(_hrm->reserved().end()));
2365 st->cr();
2366 st->print(" region size " SIZE_FORMAT "K, ", HeapRegion::GrainBytes / K);
2367 uint young_regions = young_regions_count();
2368 st->print("%u young (" SIZE_FORMAT "K), ", young_regions,
2369 (size_t) young_regions * HeapRegion::GrainBytes / K);
2370 uint survivor_regions = survivor_regions_count();
2371 st->print("%u survivors (" SIZE_FORMAT "K)", survivor_regions,
2372 (size_t) survivor_regions * HeapRegion::GrainBytes / K);
2373 st->cr();
2374 MetaspaceUtils::print_on(st);
2375 }
2376
2377 void G1CollectedHeap::print_regions_on(outputStream* st) const {
2378 st->print_cr("Heap Regions: E=young(eden), S=young(survivor), O=old, "
2379 "HS=humongous(starts), HC=humongous(continues), "
2380 "CS=collection set, F=free, "
2381 "OA=open archive, CA=closed archive, "
2382 "TAMS=top-at-mark-start (previous, next)");
2383 PrintRegionClosure blk(st);
2384 heap_region_iterate(&blk);
2385 }
2386
2387 void G1CollectedHeap::print_extended_on(outputStream* st) const {
2388 print_on(st);
2389
2390 // Print the per-region information.
2391 print_regions_on(st);
2392 }
2393
2394 void G1CollectedHeap::print_on_error(outputStream* st) const {
2395 this->CollectedHeap::print_on_error(st);
2396
2397 if (_cm != NULL) {
2398 st->cr();
2399 _cm->print_on_error(st);
2400 }
2401 }
|