src/hotspot/share/gc/g1/g1YCTypes.hpp
changeset 49643 a3453bbd5418
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
49642:7bad9c9efdf3 49643:a3453bbd5418
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 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.
    28 #include "utilities/debug.hpp"
    28 #include "utilities/debug.hpp"
    29 
    29 
    30 enum G1YCType {
    30 enum G1YCType {
    31   Normal,
    31   Normal,
    32   InitialMark,
    32   InitialMark,
    33   DuringMark,
    33   DuringMarkOrRebuild,
    34   Mixed,
    34   Mixed,
    35   G1YCTypeEndSentinel
    35   G1YCTypeEndSentinel
    36 };
    36 };
    37 
    37 
    38 class G1YCTypeHelper {
    38 class G1YCTypeHelper {
    39  public:
    39  public:
    40   static const char* to_string(G1YCType type) {
    40   static const char* to_string(G1YCType type) {
    41     switch(type) {
    41     switch(type) {
    42       case Normal: return "Normal";
    42       case Normal: return "Normal";
    43       case InitialMark: return "Initial Mark";
    43       case InitialMark: return "Initial Mark";
    44       case DuringMark: return "During Mark";
    44       case DuringMarkOrRebuild: return "During Mark";
    45       case Mixed: return "Mixed";
    45       case Mixed: return "Mixed";
    46       default: ShouldNotReachHere(); return NULL;
    46       default: ShouldNotReachHere(); return NULL;
    47     }
    47     }
    48   }
    48   }
    49 };
    49 };