RFR: 8343340: Swapping checking do not work for MetricsMemoryTester failcount [v2]

SendaoYan syan at openjdk.org
Mon Oct 20 02:12:19 UTC 2025


On Thu, 16 Oct 2025 15:28:37 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Please amend the comment on line 114 to something like this:
> 
> ```
>         // Check whether swapping really works for this test
>         // On some systems there is no swap space enabled. And running
>         // 'java -Xms{mem-limit} -Xmx{mem-limit} -XX:+AlwaysPreTouch -version'
>         // would fail due to swap space size being 0. Note that when swap is
>         // properly enabled on the system the container gets the same amount
>         // of swap as is configured for memory. Thus, 2x{mem-limit} is the actual
>         // memory and swap bound for this pre-test.
> ```

Thanks for the suggestions. The Comment has been updated.

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

PR Comment: https://git.openjdk.org/jdk/pull/27823#issuecomment-3420271458


More information about the serviceability-dev mailing list