Integrated: 8364503: gc/g1/TestCodeCacheUnloadDuringConcCycle.java fails because of race printing to stdout

Thomas Schatzl tschatzl at openjdk.org
Thu Aug 7 08:44:31 UTC 2025


On Fri, 1 Aug 2025 10:31:53 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this change to the `gc/g1/TestCodeCacheUnloadDuringConcCycle.java` test - previously, the GC that we were waiting for in the test could occur between releasing whitebox control and the marker we use to distinguish before/after test setup.
> 
> The change makes sure the marker is printed before releasing Whitebox control. So the concurrent start gc we look for can not happen before the marker printing.
> 
> Testing: passes 5000 runs of that benchmark
> 
> Thanks,
>   Thomas

This pull request has now been integrated.

Changeset: c56fb0b6
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c56fb0b6eff7d3f36bc65f300b784e0dd73c563e
Stats:     6 lines in 1 file changed: 5 ins; 1 del; 0 mod

8364503: gc/g1/TestCodeCacheUnloadDuringConcCycle.java fails because of race printing to stdout

Reviewed-by: ayang, dholmes

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

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


More information about the hotspot-gc-dev mailing list