mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8145301: Improve and unify the printout format for the g1HRPrinter
Reviewed-by: brutisso, tschatzl
This commit is contained in:
parent
f086798f2f
commit
ddab9e4387
5 changed files with 27 additions and 174 deletions
|
@ -99,7 +99,7 @@ void HeapRegionManager::uncommit_regions(uint start, size_t num_regions) {
|
|||
if (G1CollectedHeap::heap()->hr_printer()->is_active()) {
|
||||
for (uint i = start; i < start + num_regions; i++) {
|
||||
HeapRegion* hr = at(i);
|
||||
G1CollectedHeap::heap()->hr_printer()->uncommit(hr->bottom(), hr->end());
|
||||
G1CollectedHeap::heap()->hr_printer()->uncommit(hr);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ void HeapRegionManager::make_regions_available(uint start, uint num_regions) {
|
|||
assert(is_available(i), "Just made region %u available but is apparently not.", i);
|
||||
HeapRegion* hr = at(i);
|
||||
if (G1CollectedHeap::heap()->hr_printer()->is_active()) {
|
||||
G1CollectedHeap::heap()->hr_printer()->commit(hr->bottom(), hr->end());
|
||||
G1CollectedHeap::heap()->hr_printer()->commit(hr);
|
||||
}
|
||||
HeapWord* bottom = G1CollectedHeap::heap()->bottom_addr_for_region(i);
|
||||
MemRegion mr(bottom, bottom + HeapRegion::GrainWords);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue