8286291: G1: Remove unused segment allocator printouts

Reviewed-by: ayang, iwalulya
This commit is contained in:
Thomas Schatzl 2022-05-06 14:25:34 +00:00
parent b9f4370325
commit 2dd4dfdd63
4 changed files with 1 additions and 43 deletions

View File

@ -295,10 +295,6 @@ public:
}
}
void print(outputStream* os) {
os->print("TBL " PTR_FORMAT " size %zu mem %zu ", p2i(&_table), _table.get_size_log2(Thread::current()), _table.get_mem_size(Thread::current()));
}
void grow() {
size_t new_limit = _table.get_size_log2(Thread::current()) + 1;
_table.grow(Thread::current(), new_limit);
@ -922,8 +918,3 @@ void G1CardSet::clear() {
_num_occupied = 0;
_mm->flush();
}
void G1CardSet::print(outputStream* os) {
_table->print(os);
_mm->print(os);
}

View File

@ -331,8 +331,6 @@ public:
// Clear the entire contents of this remembered set.
void clear();
void print(outputStream* os);
// Iterate over the container, calling a method on every card or card range contained
// in the card container.
// For every container, first calls

View File

@ -56,7 +56,7 @@ void G1CardSetAllocator::drop_all() {
size_t G1CardSetAllocator::mem_size() const {
return sizeof(*this) +
_segmented_array.num_segments() * sizeof(G1CardSetSegment) +
num_segments() * sizeof(G1CardSetSegment) +
_segmented_array.num_total_slots() * _segmented_array.slot_size();
}
@ -71,25 +71,6 @@ uint G1CardSetAllocator::num_segments() const {
return _segmented_array.num_segments();
}
void G1CardSetAllocator::print(outputStream* os) {
uint num_allocated_slots = _segmented_array.num_allocated_slots();
uint num_total_slots = _segmented_array.num_total_slots();
uint highest = _segmented_array.first_array_segment() != nullptr
? _segmented_array.first_array_segment()->num_slots()
: 0;
uint num_segments = _segmented_array.num_segments();
uint num_pending_slots = (uint)_free_slots_list.pending_count();
os->print("MA " PTR_FORMAT ": %u slots pending (allocated %u total %u) used %.3f highest %u segments %u size %zu ",
p2i(this),
num_pending_slots,
num_allocated_slots,
num_total_slots,
percent_of(num_allocated_slots - num_pending_slots, num_total_slots),
highest,
num_segments,
mem_size());
}
G1CardSetMemoryManager::G1CardSetMemoryManager(G1CardSetConfiguration* config,
G1CardSetFreePool* free_list_pool) : _config(config) {
@ -126,13 +107,6 @@ void G1CardSetMemoryManager::flush() {
}
}
void G1CardSetMemoryManager::print(outputStream* os) {
os->print_cr("MM " PTR_FORMAT " size %zu", p2i(this), sizeof(*this));
for (uint i = 0; i < num_mem_object_types(); i++) {
_allocators[i].print(os);
}
}
size_t G1CardSetMemoryManager::mem_size() const {
size_t result = 0;
for (uint i = 0; i < num_mem_object_types(); i++) {

View File

@ -86,12 +86,9 @@ public:
// Total memory allocated.
size_t mem_size() const;
// Unused (but usable) memory.
size_t unused_mem_size() const;
uint num_segments() const;
void print(outputStream* os);
};
using G1CardSetFreePool = G1SegmentedArrayFreePool;
@ -118,8 +115,6 @@ public:
void flush();
void print(outputStream* os);
size_t mem_size() const;
size_t unused_mem_size() const;