# HG changeset patch # User tschatzl # Date 1528363255 -7200 # Node ID ab967988f85032d23a58e4a341ba6ce96dfe8345 # Parent 523c2a73a3dcef65e77b2d5be1d9794f41f8f1af 8202049: G1: ReferenceProcessor doesn't handle mark stack overflow Summary: Issue a fatal error when mark stack overflows during reference processing in the Remark phase Reviewed-by: kbarrett diff -r 523c2a73a3dc -r ab967988f850 src/hotspot/share/gc/g1/g1ConcurrentMark.cpp --- a/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp Thu Jun 07 11:20:30 2018 +0200 +++ b/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp Thu Jun 07 11:20:55 2018 +0200 @@ -1651,7 +1651,11 @@ } if (has_overflown()) { - // We can not trust g1_is_alive if the marking stack overflowed + // We can not trust g1_is_alive and the contents of the heap if the marking stack + // overflowed while processing references. Exit the VM. + fatal("Overflow during reference processing, can not continue. Please " + "increase MarkStackSizeMax (current value: " SIZE_FORMAT ") and " + "restart.", MarkStackSizeMax); return; }