< prev index next >
src/share/vm/gc_implementation/g1/g1Log.hpp
Print this page
@@ -26,17 +26,19 @@
#define SHARE_VM_GC_IMPLEMENTATION_G1_G1LOG_HPP
#include "memory/allocation.hpp"
class G1Log : public AllStatic {
+ public:
typedef enum {
LevelNone,
LevelFine,
LevelFiner,
LevelFinest
} LogLevel;
+ private:
static LogLevel _level;
public:
inline static bool fine() {
return _level >= LevelFine;
@@ -48,9 +50,13 @@
inline static bool finest() {
return _level == LevelFinest;
}
+ static LogLevel level() {
+ return _level;
+ }
+
static void init();
};
#endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1LOG_HPP
< prev index next >