RFR: 8352147: G1: TestEagerReclaimHumongousRegionsClearMarkBits test takes very long

Thomas Schatzl tschatzl at openjdk.org
Mon Mar 17 11:55:12 UTC 2025


Hi all,

  please review this refactor of the TestEagerReclaimHumongousRegionsClearMarkBits test that runs way too long, and sometimes even causing timeouts in GHA.

So the problem is that TestEagerReclaimHumongousRegionsClearMarkBits checks whether after eager reclaim during marking the mark on the humongous object is cleared correctly. It does so with a trial-and-error approach allocating humongous objects and hoping that the faulty state somehow occurs.

This can take a long time, and although the test limits itself to 50s runtime, for some reason there can still be sporadic timeouts in some setups.

However for a long time it is possible to halt concurrent mark just before completion, inducing the exact state needed for this test. So rewrite the test to be more targeted.

Testing: gha, running test locally

Thanks,
  Thomas

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

Commit messages:
 - 8352147

Changes: https://git.openjdk.org/jdk/pull/24077/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24077&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352147
  Stats: 93 lines in 1 file changed: 9 ins; 55 del; 29 mod
  Patch: https://git.openjdk.org/jdk/pull/24077.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24077/head:pull/24077

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


More information about the hotspot-gc-dev mailing list