annotate src/hotspot/share/gc/shared/gcName.hpp @ 58498:3e6ad3a4a05d

manual merge with default
author vromero
date Tue, 22 Oct 2019 20:49:40 -0400
parents 9c18c9d839d3
children
rev   line source
sla@18025 1 /*
coleenp@54304 2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
sla@18025 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
sla@18025 4 *
sla@18025 5 * This code is free software; you can redistribute it and/or modify it
sla@18025 6 * under the terms of the GNU General Public License version 2 only, as
sla@18025 7 * published by the Free Software Foundation.
sla@18025 8 *
sla@18025 9 * This code is distributed in the hope that it will be useful, but WITHOUT
sla@18025 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
sla@18025 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
sla@18025 12 * version 2 for more details (a copy is included in the LICENSE file that
sla@18025 13 * accompanied this code).
sla@18025 14 *
sla@18025 15 * You should have received a copy of the GNU General Public License version
sla@18025 16 * 2 along with this work; if not, write to the Free Software Foundation,
sla@18025 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
sla@18025 18 *
sla@18025 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
sla@18025 20 * or visit www.oracle.com if you need additional information or have any
sla@18025 21 * questions.
sla@18025 22 *
sla@18025 23 */
sla@18025 24
coleenp@54304 25 #ifndef SHARE_GC_SHARED_GCNAME_HPP
coleenp@54304 26 #define SHARE_GC_SHARED_GCNAME_HPP
sla@18025 27
sla@18025 28 #include "utilities/debug.hpp"
sla@18025 29
sla@18025 30 enum GCName {
sla@18025 31 ParallelOld,
sla@18025 32 SerialOld,
sla@18025 33 PSMarkSweep,
sla@18025 34 ParallelScavenge,
sla@18025 35 DefNew,
sla@18025 36 ParNew,
sla@18025 37 G1New,
sla@18025 38 ConcurrentMarkSweep,
sla@18025 39 G1Old,
sjohanss@48073 40 G1Full,
pliden@51138 41 Z,
rkennke@53962 42 Shenandoah,
pliden@51138 43 NA,
sla@18025 44 GCNameEndSentinel
sla@18025 45 };
sla@18025 46
sla@18025 47 class GCNameHelper {
sla@18025 48 public:
sla@18025 49 static const char* to_string(GCName name) {
sla@18025 50 switch(name) {
sla@18025 51 case ParallelOld: return "ParallelOld";
sla@18025 52 case SerialOld: return "SerialOld";
sla@18025 53 case PSMarkSweep: return "PSMarkSweep";
sla@18025 54 case ParallelScavenge: return "ParallelScavenge";
sla@18025 55 case DefNew: return "DefNew";
sla@18025 56 case ParNew: return "ParNew";
sla@18025 57 case G1New: return "G1New";
sla@18025 58 case ConcurrentMarkSweep: return "ConcurrentMarkSweep";
sla@18025 59 case G1Old: return "G1Old";
sjohanss@48073 60 case G1Full: return "G1Full";
pliden@51138 61 case Z: return "Z";
rkennke@53962 62 case Shenandoah: return "Shenandoah";
pliden@51138 63 case NA: return "N/A";
sla@18025 64 default: ShouldNotReachHere(); return NULL;
sla@18025 65 }
sla@18025 66 }
sla@18025 67 };
sla@18025 68
coleenp@54304 69 #endif // SHARE_GC_SHARED_GCNAME_HPP