Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/gc_interface/gcCause.cpp
32285 views
/*1* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#include "precompiled.hpp"25#include "gc_interface/gcCause.hpp"2627const char* GCCause::to_string(GCCause::Cause cause) {28switch (cause) {29case _java_lang_system_gc:30return "System.gc()";3132case _full_gc_alot:33return "FullGCAlot";3435case _scavenge_alot:36return "ScavengeAlot";3738case _allocation_profiler:39return "Allocation Profiler";4041case _jvmti_force_gc:42return "JvmtiEnv ForceGarbageCollection";4344case _gc_locker:45return "GCLocker Initiated GC";4647case _heap_inspection:48return "Heap Inspection Initiated GC";4950case _heap_dump:51return "Heap Dump Initiated GC";5253case _wb_young_gc:54return "WhiteBox Initiated Young GC";5556case _wb_conc_mark:57return "WhiteBox Initiated Concurrent Mark";5859case _update_allocation_context_stats_inc:60case _update_allocation_context_stats_full:61return "Update Allocation Context Stats";6263case _no_gc:64return "No GC";6566case _allocation_failure:67return "Allocation Failure";6869case _tenured_generation_full:70return "Tenured Generation Full";7172case _metadata_GC_threshold:73return "Metadata GC Threshold";7475case _cms_generation_full:76return "CMS Generation Full";7778case _cms_initial_mark:79return "CMS Initial Mark";8081case _cms_final_remark:82return "CMS Final Remark";8384case _cms_concurrent_mark:85return "CMS Concurrent Mark";8687case _old_generation_expanded_on_last_scavenge:88return "Old Generation Expanded On Last Scavenge";8990case _old_generation_too_full_to_scavenge:91return "Old Generation Too Full To Scavenge";9293case _adaptive_size_policy:94return "Ergonomics";9596case _g1_inc_collection_pause:97return "G1 Evacuation Pause";9899case _g1_humongous_allocation:100return "G1 Humongous Allocation";101102case _shenandoah_allocation_failure_evac:103return "Allocation Failure During Evacuation";104105case _shenandoah_stop_vm:106return "Stopping VM";107108case _shenandoah_concurrent_gc:109return "Concurrent GC";110111case _shenandoah_upgrade_to_full_gc:112return "Upgrade To Full GC";113114case _last_ditch_collection:115return "Last ditch collection";116117case _last_gc_cause:118return "ILLEGAL VALUE - last gc cause - ILLEGAL VALUE";119120default:121return "unknown GCCause";122}123ShouldNotReachHere();124}125126127