# HG changeset patch # User cito # Date 1549929363 -32400 # Tue Feb 12 08:56:03 2019 +0900 # Node ID 50d5bb417f768ee2ffd33e06a2d82af72a22a1c7 # Parent 3e451bff6f7fde63e063757ae7f9ebbb460b7b93 8214236: sun.gc.collector.2.name should be changed Reviewed-by: pliden, tschatzl diff --git a/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp b/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp --- a/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp +++ b/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp @@ -636,8 +636,8 @@ } 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 } diff --git a/src/hotspot/share/gc/cms/parNewGeneration.cpp b/src/hotspot/share/gc/cms/parNewGeneration.cpp --- a/src/hotspot/share/gc/cms/parNewGeneration.cpp +++ b/src/hotspot/share/gc/cms/parNewGeneration.cpp @@ -624,7 +624,7 @@ } 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) diff --git a/src/hotspot/share/gc/g1/g1MonitoringSupport.cpp b/src/hotspot/share/gc/g1/g1MonitoringSupport.cpp --- a/src/hotspot/share/gc/g1/g1MonitoringSupport.cpp +++ b/src/hotspot/share/gc/g1/g1MonitoringSupport.cpp @@ -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 @@ // 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. // diff --git a/src/hotspot/share/gc/parallel/psMarkSweep.cpp b/src/hotspot/share/gc/parallel/psMarkSweep.cpp --- a/src/hotspot/share/gc/parallel/psMarkSweep.cpp +++ b/src/hotspot/share/gc/parallel/psMarkSweep.cpp @@ -72,7 +72,7 @@ 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(); } diff --git a/src/hotspot/share/gc/parallel/psParallelCompact.cpp b/src/hotspot/share/gc/parallel/psParallelCompact.cpp --- a/src/hotspot/share/gc/parallel/psParallelCompact.cpp +++ b/src/hotspot/share/gc/parallel/psParallelCompact.cpp @@ -883,7 +883,7 @@ 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()); diff --git a/src/hotspot/share/gc/parallel/psScavenge.cpp b/src/hotspot/share/gc/parallel/psScavenge.cpp --- a/src/hotspot/share/gc/parallel/psScavenge.cpp +++ b/src/hotspot/share/gc/parallel/psScavenge.cpp @@ -754,5 +754,5 @@ // Cache the cardtable _card_table = heap->card_table(); - _counters = new CollectorCounters("PSScavenge", 0); + _counters = new CollectorCounters("Parallel young collection pauses", 0); } diff --git a/src/hotspot/share/gc/serial/defNewGeneration.hpp b/src/hotspot/share/gc/serial/defNewGeneration.hpp --- a/src/hotspot/share/gc/serial/defNewGeneration.hpp +++ b/src/hotspot/share/gc/serial/defNewGeneration.hpp @@ -192,7 +192,7 @@ 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(); diff --git a/src/hotspot/share/gc/serial/tenuredGeneration.cpp b/src/hotspot/share/gc/serial/tenuredGeneration.cpp --- a/src/hotspot/share/gc/serial/tenuredGeneration.cpp +++ b/src/hotspot/share/gc/serial/tenuredGeneration.cpp @@ -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 @@ _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(), diff --git a/src/hotspot/share/gc/z/zServiceability.cpp b/src/hotspot/share/gc/z/zServiceability.cpp --- a/src/hotspot/share/gc/z/zServiceability.cpp +++ b/src/hotspot/share/gc/z/zServiceability.cpp @@ -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 @@ 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;