RFR: 8366874: Test gc/arguments/TestParallelGCErgo.java fails with UseTransparentHugePages
Joel Sikström
jsikstro at openjdk.org
Mon Sep 8 06:36:19 UTC 2025
On Thu, 4 Sep 2025 11:33:44 GMT, Joel Sikström <jsikstro at openjdk.org> wrote:
> Hello,
>
> I found this test issue when running all GC tests with THP enabled (always or madvise mode) and using the `-XX:+UseTransparentHugePages` flag. The `@requires` flag was added in [JDK-8333306](https://bugs.openjdk.org/browse/JDK-8333306) to prevent the test from being invoked with explicit large pages (HugeTLBfs) enabled. The test also doesn't work with `-XX:+UseTransparentHugePages`.
>
> Changing the `@requires`-line to check if `UseLargePages` is evaluated to false in the VM prevents the test from being run when either setting `-XX:+UseLargePages` or `-XX:+UseTransparentHugePages`.
>
> I've tested locally that the test no longer runs with the `-XX:+UseTransparentHugePages` or `-XX:+UseLargePages` flags. Without either of the flags, the test runs fine.
Thank you for the reviews everyone!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27090#issuecomment-3264802408
More information about the hotspot-gc-dev
mailing list