RFR: 8373022: Increase initial heap size for test which assumes no GC

Joel Sikström jsikstro at openjdk.org
Thu Dec 4 17:12:22 UTC 2025


On Thu, 4 Dec 2025 16:54:59 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> Yes, we're seeing a failure due to ObjectCollectionException. This is because the heap size is now much smaller, causing more frequent GCs. "Reverting" to a larger initial heap size is a straightforward fix so that we can continue running this test.
>> 
>> I think a more "robust" approach is better, which we could do in a follow-up.
>
> Can you tell me how to run this test with a small GC that reproduces the ObjectCollectionException?

We've only seen this on windows-x64-debug so far, it should fail on mainline right now, given it is removed from the ProblemList it's in. I haven't updated this PR to remove the ProblemList just yet, but will do.

If you want to be explicit you can run it with `-XX:InitialRAMPercentage=0`, but this is the new default in mainline.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28637#discussion_r2589900851


More information about the serviceability-dev mailing list