3678N/A/*
3678N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3678N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3678N/A *
3678N/A * This code is free software; you can redistribute it and/or modify it
3678N/A * under the terms of the GNU General Public License version 2 only, as
3678N/A * published by the Free Software Foundation.
3678N/A *
3678N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3678N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3678N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3678N/A * version 2 for more details (a copy is included in the LICENSE file that
3678N/A * accompanied this code).
3678N/A *
3678N/A * You should have received a copy of the GNU General Public License version
3678N/A * 2 along with this work; if not, write to the Free Software Foundation,
3678N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3678N/A *
3678N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3678N/A * or visit www.oracle.com if you need additional information or have any
3678N/A * questions.
3678N/A *
3678N/A */
3678N/A
3678N/A#ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1LOG_HPP
3678N/A#define SHARE_VM_GC_IMPLEMENTATION_G1_G1LOG_HPP
3678N/A
3678N/A#include "memory/allocation.hpp"
3678N/A
3678N/Aclass G1Log : public AllStatic {
3678N/A typedef enum {
3678N/A LevelNone,
3678N/A LevelFine,
3678N/A LevelFiner,
3678N/A LevelFinest
3678N/A } LogLevel;
3678N/A
3678N/A static LogLevel _level;
3678N/A
3678N/A public:
3678N/A inline static bool fine() {
3678N/A return _level >= LevelFine;
3678N/A }
3678N/A
3678N/A inline static bool finer() {
3678N/A return _level >= LevelFiner;
3678N/A }
3678N/A
3678N/A inline static bool finest() {
3678N/A return _level == LevelFinest;
3678N/A }
3678N/A
3678N/A static void init();
3678N/A};
3678N/A
3678N/A#endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1LOG_HPP