--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java 2016-03-14 13:41:48.070227777 +0100 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java 2016-03-14 13:41:47.888220154 +0100 @@ -35,6 +35,10 @@ _gc_locker ("GCLocker Initiated GC"), _heap_inspection ("Heap Inspection Initiated GC"), _heap_dump ("Heap Dump Initiated GC"), + _wb_young_gc ("WhiteBox Initiated Young GC"), + _wb_conc_mark ("WhiteBox Initiated Concurrent Mark"), + _update_allocation_context_stats_inc ("Update Allocation Context Stats"), + _update_allocation_context_stats_full ("Update Allocation Context Stats"), _no_gc ("No GC"), _no_cause_specified ("Unknown GCCause"), @@ -56,6 +60,9 @@ _g1_humongous_allocation ("G1 Humongous Allocation"), _last_ditch_collection ("Last ditch collection"), + + _dcmd_gc_run ("Diagnostic Command"), + _last_gc_cause ("ILLEGAL VALUE - last gc cause - ILLEGAL VALUE"); private final String value; --- old/src/share/vm/gc/shared/gcCause.hpp 2016-03-14 13:41:48.338239002 +0100 +++ new/src/share/vm/gc/shared/gcCause.hpp 2016-03-14 13:41:48.151231169 +0100 @@ -33,6 +33,9 @@ // use of this class grows, we should split it into public // and implementation-private "causes". // +// The definitions in the SA code should be kept in sync +// with the definitions here. +// class GCCause : public AllStatic { public: