src/hotspot/share/gc/shared/gcName.hpp
changeset 52925 9c18c9d839d3
parent 50525 767cdb97f103
child 53244 9807daeb47c4
equal deleted inserted replaced
52924:420ff459906f 52925:9c18c9d839d3
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    37   G1New,
    37   G1New,
    38   ConcurrentMarkSweep,
    38   ConcurrentMarkSweep,
    39   G1Old,
    39   G1Old,
    40   G1Full,
    40   G1Full,
    41   Z,
    41   Z,
       
    42   Shenandoah,
    42   NA,
    43   NA,
    43   GCNameEndSentinel
    44   GCNameEndSentinel
    44 };
    45 };
    45 
    46 
    46 class GCNameHelper {
    47 class GCNameHelper {
    56       case G1New: return "G1New";
    57       case G1New: return "G1New";
    57       case ConcurrentMarkSweep: return "ConcurrentMarkSweep";
    58       case ConcurrentMarkSweep: return "ConcurrentMarkSweep";
    58       case G1Old: return "G1Old";
    59       case G1Old: return "G1Old";
    59       case G1Full: return "G1Full";
    60       case G1Full: return "G1Full";
    60       case Z: return "Z";
    61       case Z: return "Z";
       
    62       case Shenandoah: return "Shenandoah";
    61       case NA: return "N/A";
    63       case NA: return "N/A";
    62       default: ShouldNotReachHere(); return NULL;
    64       default: ShouldNotReachHere(); return NULL;
    63     }
    65     }
    64   }
    66   }
    65 };
    67 };