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

Joel Sikström jsikstro at openjdk.org
Mon Sep 8 06:36:20 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.

This pull request has now been integrated.

Changeset: fb1924d2
Author:    Joel Sikström <jsikstro at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fb1924d2e34f77dc834094485dccb1751bc5b3b6
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: ayang, shade, stefank, tschatzl

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

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


More information about the hotspot-gc-dev mailing list