8214236: sun.gc.collector.2.name should be changed

Reviewed-by: pliden, tschatzl
This commit is contained in:
Chihiro Ito 2019-02-12 08:56:03 +09:00
parent 1388a70bac
commit 6773177000
9 changed files with 16 additions and 16 deletions

@ -636,8 +636,8 @@ CMSCollector::CMSCollector(ConcurrentMarkSweepGeneration* cmsGen,
}
NOT_PRODUCT(_overflow_counter = CMSMarkStackOverflowInterval;)
_gc_counters = new CollectorCounters("CMS", 1);
_cgc_counters = new CollectorCounters("CMS stop-the-world phases", 2);
_gc_counters = new CollectorCounters("CMS full collection pauses", 1);
_cgc_counters = new CollectorCounters("CMS concurrent cycle pauses", 2);
_completed_initialization = true;
_inter_sweep_timer.start(); // start of time
}

@ -624,7 +624,7 @@ void ParNewGenTask::work(uint worker_id) {
}
ParNewGeneration::ParNewGeneration(ReservedSpace rs, size_t initial_byte_size)
: DefNewGeneration(rs, initial_byte_size, "PCopy"),
: DefNewGeneration(rs, initial_byte_size, "CMS young collection pauses"),
_plab_stats("Young", YoungPLABSize, PLABWeight),
_overflow_list(NULL),
_is_alive_closure(this)

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -119,15 +119,15 @@ G1MonitoringSupport::G1MonitoringSupport(G1CollectedHeap* g1h) :
// name "collector.0". In a generational collector this would be the
// young generation collection.
_incremental_collection_counters =
new CollectorCounters("G1 incremental collections", 0);
new CollectorCounters("G1 young collection pauses", 0);
// name "collector.1". In a generational collector this would be the
// old generation collection.
_full_collection_counters =
new CollectorCounters("G1 stop-the-world full collections", 1);
new CollectorCounters("G1 full collection pauses", 1);
// name "collector.2". In a generational collector this would be the
// STW phases in concurrent collection.
_conc_collection_counters =
new CollectorCounters("G1 stop-the-world phases", 2);
new CollectorCounters("G1 concurrent cycle pauses", 2);
// "Generation" and "Space" counters.
//

@ -72,7 +72,7 @@ SpanSubjectToDiscoveryClosure PSMarkSweep::_span_based_discoverer;
void PSMarkSweep::initialize() {
_span_based_discoverer.set_span(ParallelScavengeHeap::heap()->reserved_region());
set_ref_processor(new ReferenceProcessor(&_span_based_discoverer)); // a vanilla ref proc
_counters = new CollectorCounters("PSMarkSweep", 1);
_counters = new CollectorCounters("Serial full collection pauses", 1);
MarkSweep::initialize();
}

@ -883,7 +883,7 @@ void PSParallelCompact::post_initialize() {
new PCReferenceProcessor(&_span_based_discoverer,
&_is_alive_closure); // non-header is alive closure
_counters = new CollectorCounters("PSParallelCompact", 1);
_counters = new CollectorCounters("Parallel full collection pauses", 1);
// Initialize static fields in ParCompactionManager.
ParCompactionManager::initialize(mark_bitmap());

@ -754,5 +754,5 @@ void PSScavenge::initialize() {
// Cache the cardtable
_card_table = heap->card_table();
_counters = new CollectorCounters("PSScavenge", 0);
_counters = new CollectorCounters("Parallel young collection pauses", 0);
}

@ -192,7 +192,7 @@ protected:
public:
DefNewGeneration(ReservedSpace rs, size_t initial_byte_size,
const char* policy="Copy");
const char* policy="Serial young collection pauses");
virtual void ref_processor_init();

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -65,7 +65,7 @@ TenuredGeneration::TenuredGeneration(ReservedSpace rs,
_gen_counters = new GenerationCounters(gen_name, 1, 1,
gcp->min_old_size(), gcp->max_old_size(), &_virtual_space);
_gc_counters = new CollectorCounters("MSC", 1);
_gc_counters = new CollectorCounters("Serial full collection pauses", 1);
_space_counters = new CSpaceCounters(gen_name, 0,
_virtual_space.reserved_size(),

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -72,8 +72,8 @@ ZServiceabilityCounters::ZServiceabilityCounters(size_t min_capacity, size_t max
max_capacity /* max_capacity */,
min_capacity /* init_capacity */),
// gc.collector.2
_collector_counters("stop-the-world" /* name */,
2 /* ordinal */) {}
_collector_counters("Z concurrent cycle pauses" /* name */,
2 /* ordinal */) {}
CollectorCounters* ZServiceabilityCounters::collector_counters() {
return &_collector_counters;