8202049: G1: ReferenceProcessor doesn't handle mark stack overflow
authortschatzl
Thu, 07 Jun 2018 11:20:55 +0200
changeset 50442 ab967988f850
parent 50441 523c2a73a3dc
child 50443 8e56de95ce10
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
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;
   }