On Wed, 3 Dec 2025 14:59:10 GMT, Joel Sikström <[email protected]> wrote:

> Hello,
> 
>  If the initial heap size is set too low in the following tests a GC might 
> run, which will interfere with the tests and migh cause them to fail. To 
> solve this, we should run the tests with a bumped initial heap size so that 
> the GC does not interfere.
>  
> Test originally failed when run with `-XX:InitialRAMPercentage=0`. We now 
> explicitly set `-XX:InitialHeapSize=100M` and they now always pass.
> 
> Testing:
> * Rerun 10 times with Serial and Parallel for each test and they all pass

It's probably just the timing of the GC that determines whether the initial 
small heap is a problem or not. If you want the SA tests to be reliable with 
something like InitialRAMPercentage=0, probably all of the tests should be 
updated. However, personally I don't think this type of fix should be necessary 
unless you feel testing in the manner is something we want to support. There 
are plenty of tests that start failing when non-standard command line options 
are used.

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

PR Comment: https://git.openjdk.org/jdk/pull/28637#issuecomment-3607775022

Reply via email to