JDK-8313212 : G1: Intermittent mark stack overflow during reference processing
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2023-07-26
  • Updated: 2024-01-22
  • Resolved: 2024-01-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Recording this in case it recurs.

linux-x86 langtools/tools/javac/varargs/warning/Warn4.java presubmit test crashed in G1ConcurrentMark.cpp, but a rerun on my test box succeeded. The crash report is

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (g1ConcurrentMark.cpp:1671), pid=23192, tid=23203
#  fatal error: Overflow during reference processing, can not continue. Current mark stack depth: 65472, MarkStackSize: 65536, MarkStackSizeMax: 4194304. Please increase MarkStackSize and/or MarkStackSizeMax and restart.
#
# JRE version: OpenJDK Runtime Environment (22.0) (build 22-internal-phohensee-f83eccf7c6ae1c510884fc35f5498f936333e61d)
# Java VM: OpenJDK Server VM (22-internal-phohensee-f83eccf7c6ae1c510884fc35f5498f936333e61d, mixed mode, tiered, g1 gc, linux-x86)
# Problematic frame:
# V  [libjvm.so+0x5c441b]  G1ConcurrentMark::weak_refs_work()+0x31b
#
# CreateCoredumpOnCrash turned off, no core file dumped
#
# An error report file with more information is saved as:
# /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_langtools_tier1/scratch/hs_err_pid23192.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp

The presubmit test report is at

https://github.com/phohensee/jdk/actions/runs/5670551443/job/15367341007

Comments
Although there are suggestions for how this situation might be handled in comments in JDK-8202049, that change simply made it the fatal error seen here.
30-07-2023