changeset 10617:33d91edc926f

8062506: Java GCCause enum is out of sync with C++ GCCause enum Reviewed-by: stefank, tschatzl
author pliden
date Tue, 15 Mar 2016 08:01:50 +0100
parents 06b764a12317
children 6d4b1bb57cc4
files src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java src/share/vm/gc/shared/gcCause.hpp
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java	Mon Mar 14 20:20:18 2016 +0100
+++ b/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/src/share/vm/gc/shared/gcCause.hpp	Mon Mar 14 20:20:18 2016 +0100
+++ b/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: