RFR: 8364927: Move SmapsParser from runtime/os/TestTracePageSizes.java into testlib
jonghoonpark
duke at openjdk.org
Sun Sep 14 10:02:46 UTC 2025
On Sun, 14 Sep 2025 08:35:53 GMT, jonghoonpark <duke at openjdk.org> wrote:
> related jira issue: https://bugs.openjdk.org/browse/JDK-8366716
>
> ---
>
> Following the direction outlined in the issue description,
> I've extracted the common parts from `TestTracePageSizes` and `TestTransparentHugePagesHeap` to implement the `SmapsParser` test library.
>
> I've confirmed that it works without issues in my local tests.
>
> Reviews and feedback are welcome.
I converted this PR to a draft due to changes in https://github.com/openjdk/jdk/pull/27143
have confirmed that both `TestTracePageSizes` and `TestTransparentHugePagesHeap` pass when tested locally.
Additionally, I verified that `TestTransparentHugePagesHeap` also passes without any issues when the `-XX:+UseCompressedOops` option is added, as shown below:
OutputAnalyzer oa = ProcessTools.executeTestJava("-XX:+Use" + args[0] + "GC", "-Xmx128m", "-Xms128m", "-Xlog:pagesize:thp-%p.log", "-XX:+UseTransparentHugePages", "-XX:+UseCompressedOops", VerifyTHPEnabledForHeap.class.getName());
Is this the correct way to verify it?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27273#issuecomment-3289363658
PR Comment: https://git.openjdk.org/jdk/pull/27273#issuecomment-3289408042
More information about the core-libs-dev
mailing list