JDK-8368191 : GC tests LinearListLow and CircularListLow fail due to OutOfMemoryError with SerialGC
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 26
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-09-21
  • Updated: 2025-10-27
  • Resolved: 2025-10-27
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 26
26Resolved
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8369132 :  
JDK-8370079 :  
Description
----------System.out:(16/390)----------
Stress time: 30 seconds
Stress iterations factor: 1
Stress threads factor: 1
Stress runs factor: 1
Max memory: 1037959168
Sleep time: 500
Iterations: 0
Number of threads: 16
Run GC thread: false
Run mem diag thread: true
Run forever: false
Memory to fill out: 622775500
Array lenght: 5766439
Object size: 100
Garbage producer: nsk.share.gc.gp.list.CircularListProducer
Memory Strategy: low
----------System.err:(4/200)----------

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "MainThread"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

Seen on Linux x64 and  macOS Aarch64. 
Comments
Should be fixed by JDK-8368740.
27-10-2025

We currently have 86 of these failures linked in the JDK26 CI. All of them are with the SerialGC configuration. The appear to be happening on every platform except for macosx-x64, but I have no reason to believe that the issue would not reproduce on macosx-x64 if it was specifically targeted for test execution. Rather than ProblemListing this issue, I'm going to investigate disabling the test for the SerialGC collector config.
03-10-2025

> ... is a fix likely to be forthcoming? The fix is large, so will probably take some time. > If not can we please get these tests ProblemListed or modified to not run with SerialGC I can add two entries to test/hotspot/jtreg/ProblemList.txt to problemlist these tests -- that would affect all GCs. Don't know if there is a way to problemlist them only for SerialGC.
03-10-2025

We are up to nearly 90 linked failures for these tests - is a fix likely to be forthcoming? If not can we please get these tests ProblemListed or modified to not run with SerialGC. Thanks.
03-10-2025

[~shade] Just fyi, JDK-8348278 exposes some preexisting limitation in Serial young-gen expansion when a full-gc leaves some live objs in young-gen, due to too small old-gen (or too many live objs). Ofc, it's possible that one can construct such problematic scenario independent of initial heap size, but having a small initial heap size makes this problematic scenario more common. I am working on an enhancement (JDK-8368740) to add proper young-gen expansion in Serial.
30-09-2025