Integrated: 8352147: G1: TestEagerReclaimHumongousRegionsClearMarkBits test takes very long

Thomas Schatzl tschatzl at openjdk.org
Mon Mar 24 12:21:21 UTC 2025


On Mon, 17 Mar 2025 11:49:42 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> 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 has been 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

This pull request has now been integrated.

Changeset: 02a4ce23
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/02a4ce23f8353a9dd6400f2dd44f9cc1649626d3
Stats:     112 lines in 1 file changed: 25 ins; 67 del; 20 mod

8352147: G1: TestEagerReclaimHumongousRegionsClearMarkBits test takes very long

Reviewed-by: iwalulya, ayang

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

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


More information about the hotspot-gc-dev mailing list