--- old/agent/src/share/classes/sun/jvm/hotspot/gc_interface/GCCause.java 2015-05-13 13:54:11.635511257 +0200 +++ /dev/null 2015-03-18 17:10:38.111854831 +0100 @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - * - */ - -package sun.jvm.hotspot.gc_interface; - -//These definitions should be kept in sync with the definitions in the HotSpot code. - -public enum GCCause { - _java_lang_system_gc ("System.gc()"), - _full_gc_alot ("FullGCAlot"), - _scavenge_alot ("ScavengeAlot"), - _allocation_profiler ("Allocation Profiler"), - _jvmti_force_gc ("JvmtiEnv ForceGarbageCollection"), - _gc_locker ("GCLocker Initiated GC"), - _heap_inspection ("Heap Inspection Initiated GC"), - _heap_dump ("Heap Dump Initiated GC"), - - _no_gc ("No GC"), - _no_cause_specified ("Unknown GCCause"), - _allocation_failure ("Allocation Failure"), - - _tenured_generation_full ("Tenured Generation Full"), - _metadata_GC_threshold ("Metadata GC Threshold"), - - _cms_generation_full ("CMS Generation Full"), - _cms_initial_mark ("CMS Initial Mark"), - _cms_final_remark ("CMS Final Remark"), - _cms_concurrent_mark ("CMS Concurrent Mark"), - - _old_generation_expanded_on_last_scavenge ("Old Generation Expanded On Last Scavenge"), - _old_generation_too_full_to_scavenge ("Old Generation Too Full To Scavenge"), - _adaptive_size_policy ("Ergonomics"), - - _g1_inc_collection_pause ("G1 Evacuation Pause"), - _g1_humongous_allocation ("G1 Humongous Allocation"), - - _last_ditch_collection ("Last ditch collection"), - _last_gc_cause ("ILLEGAL VALUE - last gc cause - ILLEGAL VALUE"); - - private final String value; - - GCCause(String val) { - this.value = val; - } - public String value() { - return value; - } -} --- /dev/null 2015-03-18 17:10:38.111854831 +0100 +++ new/agent/src/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java 2015-05-13 13:54:11.470504410 +0200 @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ + +package sun.jvm.hotspot.gc.shared; + +//These definitions should be kept in sync with the definitions in the HotSpot code. + +public enum GCCause { + _java_lang_system_gc ("System.gc()"), + _full_gc_alot ("FullGCAlot"), + _scavenge_alot ("ScavengeAlot"), + _allocation_profiler ("Allocation Profiler"), + _jvmti_force_gc ("JvmtiEnv ForceGarbageCollection"), + _gc_locker ("GCLocker Initiated GC"), + _heap_inspection ("Heap Inspection Initiated GC"), + _heap_dump ("Heap Dump Initiated GC"), + + _no_gc ("No GC"), + _no_cause_specified ("Unknown GCCause"), + _allocation_failure ("Allocation Failure"), + + _tenured_generation_full ("Tenured Generation Full"), + _metadata_GC_threshold ("Metadata GC Threshold"), + + _cms_generation_full ("CMS Generation Full"), + _cms_initial_mark ("CMS Initial Mark"), + _cms_final_remark ("CMS Final Remark"), + _cms_concurrent_mark ("CMS Concurrent Mark"), + + _old_generation_expanded_on_last_scavenge ("Old Generation Expanded On Last Scavenge"), + _old_generation_too_full_to_scavenge ("Old Generation Too Full To Scavenge"), + _adaptive_size_policy ("Ergonomics"), + + _g1_inc_collection_pause ("G1 Evacuation Pause"), + _g1_humongous_allocation ("G1 Humongous Allocation"), + + _last_ditch_collection ("Last ditch collection"), + _last_gc_cause ("ILLEGAL VALUE - last gc cause - ILLEGAL VALUE"); + + private final String value; + + GCCause(String val) { + this.value = val; + } + public String value() { + return value; + } +}