RFR: 8360651: Create OSContainer API for memory limit
Severin Gehwolf
sgehwolf at openjdk.org
Tue Jul 8 11:05:40 UTC 2025
On Fri, 27 Jun 2025 14:47:34 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> Please review this small addition to add a new `OSContainer::has_memory_limit()` API (Linux only - as with the entire OSContainer API) in preparation for [JDK-8350596](https://bugs.openjdk.org/browse/JDK-8350596) which proposes to increase the default `MaxRAMPercentage` when this new API returns true. The patch is pretty trivial. It's only the testing which amounts to the most lines in this patch.
>
> Testing:
> - [x] GHA
> - [x] Hotspot container tests on x86_64 Linux on cgroup v1 and cgroup v2 (including the new tests).
>
> Thoughts?
Anyone willing to review this?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26020#issuecomment-3048431702
More information about the hotspot-dev
mailing list