7110190: GCCause::to_string missing case for _adaptive_size_policy
Summary: Added case for _adaptive_size_policy
Reviewed-by: johnc, ysr
--- a/hotspot/src/share/vm/gc_interface/gcCause.cpp Tue Nov 08 00:41:28 2011 -0500
+++ b/hotspot/src/share/vm/gc_interface/gcCause.cpp Wed Nov 09 23:21:00 2011 +0100
@@ -42,12 +42,6 @@
case _jvmti_force_gc:
return "JvmtiEnv ForceGarbageCollection";
- case _no_gc:
- return "No GC";
-
- case _allocation_failure:
- return "Allocation Failure";
-
case _gc_locker:
return "GCLocker Initiated GC";
@@ -57,6 +51,12 @@
case _heap_dump:
return "Heap Dump Initiated GC";
+ case _no_gc:
+ return "No GC";
+
+ case _allocation_failure:
+ return "Allocation Failure";
+
case _tenured_generation_full:
return "Tenured Generation Full";
@@ -78,6 +78,9 @@
case _old_generation_too_full_to_scavenge:
return "Old Generation Too Full To Scavenge";
+ case _adaptive_size_policy:
+ return "Ergonomics";
+
case _g1_inc_collection_pause:
return "G1 Evacuation Pause";