RFR: 8340422: ZGC: TestAllocateHeapAt.java should not run with transparent hugepages
Axel Boldt-Christmas
aboldtch at openjdk.org
Mon Sep 23 07:49:17 UTC 2024
Similarly to [JDK-8340146](https://bugs.openjdk.org/browse/JDK-8340146) / #21127 does not work well with transparent hugepages.
Because a machine may be configured in such a way that UseTransperetHugePages option gets ignored, the test driver must also check if it will be. As such I extracted the `test/hotspot/jtreg/runtime/os/HugePageConfiguration.java` utility into shared test library.
On none linux machines the `vm.opt.final.UseTransparentHugePages` will be null, but the test checks `os.family == "linux"` first. I have not observed an issue with the JTREG filter on none linux machines. But will double check that it does not cause an issue.
-------------
Commit messages:
- 8340422: ZGC: TestAllocateHeapAt.java should not run with transparent hugepages
Changes: https://git.openjdk.org/jdk/pull/21129/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21129&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8340422
Stats: 44 lines in 7 files changed: 41 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/21129.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21129/head:pull/21129
PR: https://git.openjdk.org/jdk/pull/21129
More information about the hotspot-dev
mailing list