diff src/share/vm/gc_implementation/g1/g1Log.hpp @ 22908:c3fcc09c9239

8074037: Refactor the G1GCPhaseTime logging to make it easier to add new phases Reviewed-by: tschatzl, mgerdin, ecaspole
author brutisso
date Thu, 26 Mar 2015 13:19:32 +0100
parents 5c86f8211d1e
children
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1Log.hpp	Thu Oct 23 11:43:29 2014 +0200
+++ b/src/share/vm/gc_implementation/g1/g1Log.hpp	Thu Mar 26 13:19:32 2015 +0100
@@ -28,6 +28,7 @@
 #include "memory/allocation.hpp"
 
 class G1Log : public AllStatic {
+ public:
   typedef enum {
     LevelNone,
     LevelFine,
@@ -35,6 +36,7 @@
     LevelFinest
   } LogLevel;
 
+ private:
   static LogLevel _level;
 
  public:
@@ -50,6 +52,10 @@
     return _level == LevelFinest;
   }
 
+  static LogLevel level() {
+    return _level;
+  }
+
   static void init();
 };