src/share/vm/gc_interface/gcCause.cpp

Mon, 06 Oct 2014 10:11:13 +0200

author
sjohanss
date
Mon, 06 Oct 2014 10:11:13 +0200
changeset 7236
d3fd73295885
parent 7176
dce3f772de9f
child 7535
7ae4e26cb1e0
child 8194
047a642c9729
permissions
-rw-r--r--

8059466: Force young GC to initiate marking cycle when stat update is requested
Summary: Enable yc to be forced for stat update.
Reviewed-by: mgerdin, jcoomes

duke@435 1 /*
mikael@6198 2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
duke@435 22 *
duke@435 23 */
duke@435 24
stefank@2314 25 #include "precompiled.hpp"
stefank@2314 26 #include "gc_interface/gcCause.hpp"
duke@435 27
duke@435 28 const char* GCCause::to_string(GCCause::Cause cause) {
duke@435 29 switch (cause) {
duke@435 30 case _java_lang_system_gc:
duke@435 31 return "System.gc()";
duke@435 32
duke@435 33 case _full_gc_alot:
duke@435 34 return "FullGCAlot";
duke@435 35
duke@435 36 case _scavenge_alot:
duke@435 37 return "ScavengeAlot";
duke@435 38
duke@435 39 case _allocation_profiler:
duke@435 40 return "Allocation Profiler";
duke@435 41
duke@435 42 case _jvmti_force_gc:
duke@435 43 return "JvmtiEnv ForceGarbageCollection";
duke@435 44
duke@435 45 case _gc_locker:
duke@435 46 return "GCLocker Initiated GC";
duke@435 47
duke@435 48 case _heap_inspection:
duke@435 49 return "Heap Inspection Initiated GC";
duke@435 50
duke@435 51 case _heap_dump:
duke@435 52 return "Heap Dump Initiated GC";
duke@435 53
tschatzl@7071 54 case _wb_young_gc:
tschatzl@7071 55 return "WhiteBox Initiated Young GC";
tschatzl@7071 56
sjohanss@7236 57 case _update_allocation_context_stats_inc:
sjohanss@7236 58 case _update_allocation_context_stats_full:
jcoomes@7176 59 return "Update Allocation Context Stats";
jcoomes@7176 60
brutisso@3270 61 case _no_gc:
brutisso@3270 62 return "No GC";
brutisso@3270 63
brutisso@3270 64 case _allocation_failure:
brutisso@3270 65 return "Allocation Failure";
brutisso@3270 66
duke@435 67 case _tenured_generation_full:
duke@435 68 return "Tenured Generation Full";
duke@435 69
coleenp@4037 70 case _metadata_GC_threshold:
coleenp@4037 71 return "Metadata GC Threshold";
duke@435 72
duke@435 73 case _cms_generation_full:
duke@435 74 return "CMS Generation Full";
duke@435 75
duke@435 76 case _cms_initial_mark:
duke@435 77 return "CMS Initial Mark";
duke@435 78
duke@435 79 case _cms_final_remark:
duke@435 80 return "CMS Final Remark";
duke@435 81
sla@5237 82 case _cms_concurrent_mark:
sla@5237 83 return "CMS Concurrent Mark";
sla@5237 84
duke@435 85 case _old_generation_expanded_on_last_scavenge:
duke@435 86 return "Old Generation Expanded On Last Scavenge";
duke@435 87
duke@435 88 case _old_generation_too_full_to_scavenge:
duke@435 89 return "Old Generation Too Full To Scavenge";
duke@435 90
brutisso@3270 91 case _adaptive_size_policy:
brutisso@3270 92 return "Ergonomics";
brutisso@3270 93
tonyp@2011 94 case _g1_inc_collection_pause:
tonyp@2011 95 return "G1 Evacuation Pause";
tonyp@2011 96
brutisso@3456 97 case _g1_humongous_allocation:
brutisso@3456 98 return "G1 Humongous Allocation";
brutisso@3456 99
duke@435 100 case _last_ditch_collection:
duke@435 101 return "Last ditch collection";
duke@435 102
duke@435 103 case _last_gc_cause:
duke@435 104 return "ILLEGAL VALUE - last gc cause - ILLEGAL VALUE";
duke@435 105
duke@435 106 default:
duke@435 107 return "unknown GCCause";
duke@435 108 }
duke@435 109 ShouldNotReachHere();
duke@435 110 }

mercurial