RFR: 8366874: Test gc/arguments/TestParallelGCErgo.java fails with UseTransparentHugePages
Joel Sikström
jsikstro at openjdk.org
Thu Sep 4 11:38:52 UTC 2025
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.
-------------
Commit messages:
- 8366874: Test gc/arguments/TestParallelGCErgo.java fails with UseTransparentHugePages
Changes: https://git.openjdk.org/jdk/pull/27090/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27090&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8366874
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/27090.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27090/head:pull/27090
PR: https://git.openjdk.org/jdk/pull/27090
More information about the hotspot-gc-dev
mailing list