RFR: 8366874: Test gc/arguments/TestParallelGCErgo.java fails with UseTransparentHugePages

Thomas Schatzl tschatzl at openjdk.org
Fri Sep 5 08:24:11 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.

Marked as reviewed by tschatzl (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/27090#pullrequestreview-3188449775


More information about the hotspot-gc-dev mailing list