8062506: Java GCCause enum is out of sync with C++ GCCause enum
authorpliden
Tue, 15 Mar 2016 08:01:50 +0100
changeset 37103 79c0f8e4b7b7
parent 37095 adfe20658079
child 37104 0950120451c4
8062506: Java GCCause enum is out of sync with C++ GCCause enum Reviewed-by: stefank, tschatzl
hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java
hotspot/src/share/vm/gc/shared/gcCause.hpp
--- a/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java	Mon Mar 14 20:20:18 2016 +0100
+++ b/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java	Tue Mar 15 08:01:50 2016 +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;
--- a/hotspot/src/share/vm/gc/shared/gcCause.hpp	Mon Mar 14 20:20:18 2016 +0100
+++ b/hotspot/src/share/vm/gc/shared/gcCause.hpp	Tue Mar 15 08:01:50 2016 +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: