JDK-8336909 : Release Note: G1: Grow marking stack during Reference processing
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 23
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2024-07-22
  • Updated: 2024-07-22
Description
During Concurrent Marking, G1 increases the marking stack size in bytes, starting from a minimum and potentially reaching a maximum as defined by the -XX:MarkStackSize and -XX:MarkStackSizeMax options.

Previously, G1 was unable to grow the marking stack during Reference Processing, which could result in a mark stack overflow error before reaching the MarkStackSizeMax limit. With this update, the marking stack is allowed to expand even during Reference Processing, preventing such overflow errors.