annotate src/hotspot/share/gc/shared/gcName.hpp @ 52321:31b159f30fb2

8180193: Make marking bitmap code available to other GCs Reviewed-by: shade, stefank
author rkennke
date Wed, 29 Aug 2018 20:15:09 +0200
parents 5caa1d5f74c1
children 9c18c9d839d3
rev   line source
sla@18025 1 /*
sjohanss@48073 2 * Copyright (c) 2002, 2017, 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
pliden@30764 25 #ifndef SHARE_VM_GC_SHARED_GCNAME_HPP
pliden@30764 26 #define SHARE_VM_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,
pliden@51138 42 NA,
sla@18025 43 GCNameEndSentinel
sla@18025 44 };
sla@18025 45
sla@18025 46 class GCNameHelper {
sla@18025 47 public:
sla@18025 48 static const char* to_string(GCName name) {
sla@18025 49 switch(name) {
sla@18025 50 case ParallelOld: return "ParallelOld";
sla@18025 51 case SerialOld: return "SerialOld";
sla@18025 52 case PSMarkSweep: return "PSMarkSweep";
sla@18025 53 case ParallelScavenge: return "ParallelScavenge";
sla@18025 54 case DefNew: return "DefNew";
sla@18025 55 case ParNew: return "ParNew";
sla@18025 56 case G1New: return "G1New";
sla@18025 57 case ConcurrentMarkSweep: return "ConcurrentMarkSweep";
sla@18025 58 case G1Old: return "G1Old";
sjohanss@48073 59 case G1Full: return "G1Full";
pliden@51138 60 case Z: return "Z";
pliden@51138 61 case NA: return "N/A";
sla@18025 62 default: ShouldNotReachHere(); return NULL;
sla@18025 63 }
sla@18025 64 }
sla@18025 65 };
sla@18025 66
pliden@30764 67 #endif // SHARE_VM_GC_SHARED_GCNAME_HPP