[lworld] RFR: 8377353: [lworld] compiler/valhalla/inlinetypes/TestStressReturnBuffering.java OOMs with ZGC and AOT class linking with --enable-preview

Paul Hübner phubner at openjdk.org
Thu Feb 12 16:42:01 UTC 2026


On Thu, 12 Feb 2026 16:03:34 GMT, Damon Fenacci <dfenacci at openjdk.org> wrote:

> # Issue
> 
> `compiler/valhalla/inlinetypes/TestStressReturnBuffering.java` fails when run with `-XX:+AOTClassLinking -XX:+UseZGC --enable-preview`
> 
> # Cause
> 
> The test limits the heap size using `-Xmx6m`, which is not always enough to run it with ZGC and AOTClassLinking.
> 
> # Fix
> 
> Raising the limit a little to `-Xmx10m` fixes the issue (while still forcing frequent garbage collections).
> 
> # Testing
> 
> Tier 1-3+
> Failing test before and after

LGTM thanks!

-------------

Marked as reviewed by phubner (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/2093#pullrequestreview-3792150814


More information about the valhalla-dev mailing list