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

Joel Sikström jsikstro at openjdk.org
Wed Dec 3 15:06:20 UTC 2025


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

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

Commit messages:
 - Spell fix
 - 8373022: Increase initial heap size for test which assumes no GC

Changes: https://git.openjdk.org/jdk/pull/28637/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28637&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8373022
  Stats: 5 lines in 2 files changed: 3 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/28637.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28637/head:pull/28637

PR: https://git.openjdk.org/jdk/pull/28637


More information about the serviceability-dev mailing list