8062506: Java GCCause enum is out of sync with C++ GCCause enum

Reviewed-by: stefank, tschatzl
This commit is contained in:
Per Lidén 2016-03-15 08:01:50 +01:00
parent 32165d2889
commit e313c8214f
2 changed files with 10 additions and 0 deletions

View file

@ -35,6 +35,10 @@ public enum GCCause {
_gc_locker ("GCLocker Initiated GC"), _gc_locker ("GCLocker Initiated GC"),
_heap_inspection ("Heap Inspection Initiated GC"), _heap_inspection ("Heap Inspection Initiated GC"),
_heap_dump ("Heap Dump 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_gc ("No GC"),
_no_cause_specified ("Unknown GCCause"), _no_cause_specified ("Unknown GCCause"),
@ -56,6 +60,9 @@ public enum GCCause {
_g1_humongous_allocation ("G1 Humongous Allocation"), _g1_humongous_allocation ("G1 Humongous Allocation"),
_last_ditch_collection ("Last ditch collection"), _last_ditch_collection ("Last ditch collection"),
_dcmd_gc_run ("Diagnostic Command"),
_last_gc_cause ("ILLEGAL VALUE - last gc cause - ILLEGAL VALUE"); _last_gc_cause ("ILLEGAL VALUE - last gc cause - ILLEGAL VALUE");
private final String value; private final String value;

View file

@ -33,6 +33,9 @@
// use of this class grows, we should split it into public // use of this class grows, we should split it into public
// and implementation-private "causes". // and implementation-private "causes".
// //
// The definitions in the SA code should be kept in sync
// with the definitions here.
//
class GCCause : public AllStatic { class GCCause : public AllStatic {
public: public: