mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8252089: Remove psParallelCompact internal debug counters
Reviewed-by: sjohanss, tschatzl
This commit is contained in:
parent
4b7f027407
commit
0257ac1447
2 changed files with 0 additions and 33 deletions
|
@ -411,13 +411,6 @@ print_initial_summary_data(ParallelCompactData& summary_data,
|
|||
}
|
||||
#endif // #ifndef PRODUCT
|
||||
|
||||
#ifdef ASSERT
|
||||
size_t add_obj_count;
|
||||
size_t add_obj_size;
|
||||
size_t mark_bitmap_count;
|
||||
size_t mark_bitmap_size;
|
||||
#endif // #ifdef ASSERT
|
||||
|
||||
ParallelCompactData::ParallelCompactData() :
|
||||
_region_start(NULL),
|
||||
DEBUG_ONLY(_region_end(NULL) COMMA)
|
||||
|
@ -538,9 +531,6 @@ void ParallelCompactData::add_obj(HeapWord* addr, size_t len)
|
|||
// end_region is inclusive
|
||||
const size_t end_region = (obj_ofs + len - 1) >> Log2RegionSize;
|
||||
|
||||
DEBUG_ONLY(Atomic::inc(&add_obj_count);)
|
||||
DEBUG_ONLY(Atomic::add(&add_obj_size, len);)
|
||||
|
||||
if (beg_region == end_region) {
|
||||
// All in one region.
|
||||
_region_data[beg_region].add_live_obj(len);
|
||||
|
@ -992,9 +982,6 @@ void PSParallelCompact::pre_compact()
|
|||
_space_info[from_space_id].set_space(heap->young_gen()->from_space());
|
||||
_space_info[to_space_id].set_space(heap->young_gen()->to_space());
|
||||
|
||||
DEBUG_ONLY(add_obj_count = add_obj_size = 0;)
|
||||
DEBUG_ONLY(mark_bitmap_count = mark_bitmap_size = 0;)
|
||||
|
||||
// Increment the invocation count
|
||||
heap->increment_total_collections(true);
|
||||
|
||||
|
@ -1611,19 +1598,6 @@ void PSParallelCompact::summary_phase(ParCompactionManager* cm,
|
|||
{
|
||||
GCTraceTime(Info, gc, phases) tm("Summary Phase", &_gc_timer);
|
||||
|
||||
#ifdef ASSERT
|
||||
log_develop_debug(gc, marking)(
|
||||
"add_obj_count=" SIZE_FORMAT " "
|
||||
"add_obj_bytes=" SIZE_FORMAT,
|
||||
add_obj_count,
|
||||
add_obj_size * HeapWordSize);
|
||||
log_develop_debug(gc, marking)(
|
||||
"mark_bitmap_count=" SIZE_FORMAT " "
|
||||
"mark_bitmap_bytes=" SIZE_FORMAT,
|
||||
mark_bitmap_count,
|
||||
mark_bitmap_size * HeapWordSize);
|
||||
#endif // ASSERT
|
||||
|
||||
// Quick summarization of each space into itself, to see how much is live.
|
||||
summarize_spaces_quick();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue