4141N/A/*
4141N/A * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
4141N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4141N/A *
4141N/A * This code is free software; you can redistribute it and/or modify it
4141N/A * under the terms of the GNU General Public License version 2 only, as
4141N/A * published by the Free Software Foundation.
4141N/A *
4141N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4141N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4141N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4141N/A * version 2 for more details (a copy is included in the LICENSE file that
4141N/A * accompanied this code).
4141N/A *
4141N/A * You should have received a copy of the GNU General Public License version
4141N/A * 2 along with this work; if not, write to the Free Software Foundation,
4141N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4141N/A *
4141N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4141N/A * or visit www.oracle.com if you need additional information or have any
4141N/A * questions.
4141N/A *
4141N/A */
4141N/A
4141N/A#ifndef SHARE_VM_GC_INTERFACE_GCNAME_HPP
4141N/A#define SHARE_VM_GC_INTERFACE_GCNAME_HPP
4141N/A
4141N/A#include "utilities/debug.hpp"
4141N/A
4141N/Aenum GCName {
4141N/A ParallelOld,
4141N/A SerialOld,
4141N/A PSMarkSweep,
4141N/A ParallelScavenge,
4141N/A DefNew,
4141N/A ParNew,
4141N/A G1New,
4141N/A ConcurrentMarkSweep,
4141N/A G1Old,
4141N/A GCNameEndSentinel
4141N/A};
4141N/A
4141N/Aclass GCNameHelper {
4141N/A public:
4141N/A static const char* to_string(GCName name) {
4141N/A switch(name) {
4141N/A case ParallelOld: return "ParallelOld";
4141N/A case SerialOld: return "SerialOld";
4141N/A case PSMarkSweep: return "PSMarkSweep";
4141N/A case ParallelScavenge: return "ParallelScavenge";
4141N/A case DefNew: return "DefNew";
4141N/A case ParNew: return "ParNew";
4141N/A case G1New: return "G1New";
4141N/A case ConcurrentMarkSweep: return "ConcurrentMarkSweep";
4141N/A case G1Old: return "G1Old";
4141N/A default: ShouldNotReachHere(); return NULL;
4141N/A }
4141N/A }
4141N/A};
4141N/A
4141N/A#endif // SHARE_VM_GC_INTERFACE_GCNAME_HPP