--- a/src/hotspot/share/gc/shared/gcCause.hpp Mon Dec 10 17:34:49 2018 +0300
+++ b/src/hotspot/share/gc/shared/gcCause.hpp Mon Dec 10 15:47:44 2018 +0100
@@ -80,6 +80,12 @@
_dcmd_gc_run,
+ _shenandoah_stop_vm,
+ _shenandoah_allocation_failure_evac,
+ _shenandoah_concurrent_gc,
+ _shenandoah_traversal_gc,
+ _shenandoah_upgrade_to_full_gc,
+
_z_timer,
_z_warmup,
_z_allocation_rate,
@@ -123,7 +129,8 @@
// _allocation_failure is the generic cause a collection for allocation failure
// _adaptive_size_policy is for a collecton done before a full GC
return (cause == GCCause::_allocation_failure ||
- cause == GCCause::_adaptive_size_policy);
+ cause == GCCause::_adaptive_size_policy ||
+ cause == GCCause::_shenandoah_allocation_failure_evac);
}
// Return a string describing the GCCause.