Sat, 07 Nov 2020 10:30:02 +0800
Added tag mips-jdk8u275-b01 for changeset d3b4d62f391f
neugens@9861 | 1 | /* |
neugens@9861 | 2 | * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
neugens@9861 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
neugens@9861 | 4 | * |
neugens@9861 | 5 | * This code is free software; you can redistribute it and/or modify it |
neugens@9861 | 6 | * under the terms of the GNU General Public License version 2 only, as |
neugens@9861 | 7 | * published by the Free Software Foundation. |
neugens@9861 | 8 | * |
neugens@9861 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
neugens@9861 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
neugens@9861 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
neugens@9861 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
neugens@9861 | 13 | * accompanied this code). |
neugens@9861 | 14 | * |
neugens@9861 | 15 | * You should have received a copy of the GNU General Public License version |
neugens@9861 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
neugens@9861 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
neugens@9861 | 18 | * |
neugens@9861 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
neugens@9861 | 20 | * or visit www.oracle.com if you need additional information or have any |
neugens@9861 | 21 | * questions. |
neugens@9861 | 22 | * |
neugens@9861 | 23 | */ |
neugens@9861 | 24 | |
neugens@9861 | 25 | #ifndef SHARE_GC_G1_G1HEAPREGIONTRACETYPE_HPP |
neugens@9861 | 26 | #define SHARE_GC_G1_G1HEAPREGIONTRACETYPE_HPP |
neugens@9861 | 27 | |
neugens@9861 | 28 | #include "memory/allocation.hpp" |
neugens@9861 | 29 | #include "utilities/debug.hpp" |
neugens@9861 | 30 | |
neugens@9861 | 31 | class G1HeapRegionTraceType : AllStatic { |
neugens@9861 | 32 | public: |
neugens@9861 | 33 | enum Type { |
neugens@9861 | 34 | Free, |
neugens@9861 | 35 | Eden, |
neugens@9861 | 36 | Survivor, |
neugens@9861 | 37 | StartsHumongous, |
neugens@9861 | 38 | ContinuesHumongous, |
neugens@9861 | 39 | Old, |
neugens@9861 | 40 | G1HeapRegionTypeEndSentinel |
neugens@9861 | 41 | }; |
neugens@9861 | 42 | |
neugens@9861 | 43 | static const char* to_string(G1HeapRegionTraceType::Type type) { |
neugens@9861 | 44 | switch (type) { |
neugens@9861 | 45 | case Free: return "Free"; |
neugens@9861 | 46 | case Eden: return "Eden"; |
neugens@9861 | 47 | case Survivor: return "Survivor"; |
neugens@9861 | 48 | case StartsHumongous: return "Starts Humongous"; |
neugens@9861 | 49 | case ContinuesHumongous: return "Continues Humongous"; |
neugens@9861 | 50 | case Old: return "Old"; |
neugens@9861 | 51 | default: ShouldNotReachHere(); return NULL; |
neugens@9861 | 52 | } |
neugens@9861 | 53 | } |
neugens@9861 | 54 | }; |
neugens@9861 | 55 | |
neugens@9861 | 56 | #endif // SHARE_GC_G1_G1HEAPREGIONTRACETYPE_HPP |