Purge unused young counters from monitoring epsilon-gc-branch
authorshade
Mon, 26 Mar 2018 16:18:35 +0200
branchepsilon-gc-branch
changeset 56351 08b27b968b24
parent 56350 56014b46de69
child 56352 ebb84e128ed3
Purge unused young counters from monitoring
src/hotspot/share/gc/epsilon/epsilonMonitoringSupport.cpp
src/hotspot/share/gc/epsilon/epsilonMonitoringSupport.hpp
--- a/src/hotspot/share/gc/epsilon/epsilonMonitoringSupport.cpp	Mon Mar 26 16:01:23 2018 +0200
+++ b/src/hotspot/share/gc/epsilon/epsilonMonitoringSupport.cpp	Mon Mar 26 16:18:35 2018 +0200
@@ -82,16 +82,6 @@
 };
 
 
-class EpsilonYoungGenerationCounters : public GenerationCounters {
-public:
-  EpsilonYoungGenerationCounters() :
-          GenerationCounters("Young", 0, 0, 0, (size_t)0, (size_t)0) {};
-
-  virtual void update_all() {
-    // no update
-  }
-};
-
 class EpsilonGenerationCounters : public GenerationCounters {
 private:
   EpsilonHeap* _heap;
@@ -107,8 +97,6 @@
 };
 
 EpsilonMonitoringSupport::EpsilonMonitoringSupport(EpsilonHeap* heap) {
-  // We report young gen as unused.
-  _young_counters = new EpsilonYoungGenerationCounters();
   _heap_counters  = new EpsilonGenerationCounters(heap);
   _space_counters = new EpsilonSpaceCounters("Heap", 0, heap->max_capacity(), 0, _heap_counters);
 }
--- a/src/hotspot/share/gc/epsilon/epsilonMonitoringSupport.hpp	Mon Mar 26 16:01:23 2018 +0200
+++ b/src/hotspot/share/gc/epsilon/epsilonMonitoringSupport.hpp	Mon Mar 26 16:18:35 2018 +0200
@@ -32,7 +32,6 @@
 
 class EpsilonMonitoringSupport : public CHeapObj<mtGC> {
 private:
-  GenerationCounters* _young_counters;
   GenerationCounters* _heap_counters;
   EpsilonSpaceCounters* _space_counters;