changeset 53320:fcddd67f986f

8215114: Fix indent and dead code in GCPolicyCounters Summary: Clean up gcPolicyCounters.hpp Reviewed-by: tschatzl, sjohanss
author manc
date Mon, 10 Dec 2018 17:57:19 +0800
parents 64049c8e7452
children de5564099c01
files src/hotspot/share/gc/shared/gcPolicyCounters.hpp
diffstat 1 files changed, 21 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shared/gcPolicyCounters.hpp	Mon Jan 14 23:05:26 2019 +0100
+++ b/src/hotspot/share/gc/shared/gcPolicyCounters.hpp	Mon Dec 10 17:57:19 2018 +0800
@@ -33,46 +33,42 @@
 class GCPolicyCounters: public CHeapObj<mtGC> {
   friend class VMStructs;
 
-  private:
+  // Constant PerfData types don't need to retain a reference.
+  // However, it's a good idea to document them here.
+  // PerfStringConstant* _name;
+  // PerfStringConstant* _collector_size;
+  // PerfStringConstant* _generation_size;
 
-    // Constant PerfData types don't need to retain a reference.
-    // However, it's a good idea to document them here.
-    // PerfStringConstant*     _name;
-    // PerfStringConstant*     _collector_size;
-    // PerfStringConstant*     _generation_size;
+  PerfVariable* _tenuring_threshold;
+  PerfVariable* _desired_survivor_size;
 
-    PerfVariable*     _tenuring_threshold;
-    PerfVariable*     _desired_survivor_size;
+  const char* _name_space;
 
-    const char* _name_space;
-
- public:
-
+public:
   enum Name {
     NONE,
     GCPolicyCountersKind,
     GCAdaptivePolicyCountersKind,
-    PSGCAdaptivePolicyCountersKind,
-    CMSGCAdaptivePolicyCountersKind
+    PSGCAdaptivePolicyCountersKind
   };
 
   GCPolicyCounters(const char* name, int collectors, int generations);
 
-    inline PerfVariable* tenuring_threshold() const  {
-      return _tenuring_threshold;
-    }
+  inline PerfVariable* tenuring_threshold() const  {
+    return _tenuring_threshold;
+  }
 
-    inline PerfVariable* desired_survivor_size() const  {
-      return _desired_survivor_size;
-    }
+  inline PerfVariable* desired_survivor_size() const  {
+    return _desired_survivor_size;
+  }
 
-    const char* name_space() const { return _name_space; }
+  const char* name_space() const { return _name_space; }
 
-    virtual void update_counters() {}
+  virtual void update_counters() {}
 
-    virtual GCPolicyCounters::Name kind() const {
-      return GCPolicyCounters::GCPolicyCountersKind;
-    }
+  virtual GCPolicyCounters::Name kind() const {
+    return GCPolicyCounters::GCPolicyCountersKind;
+  }
 };
 
 #endif // SHARE_GC_SHARED_GCPOLICYCOUNTERS_HPP