RFR: 8349988: Change cgroup version detection logic to not depend on /proc/cgroups [v4]

Sergey Chernyshev schernyshev at openjdk.org
Wed Oct 15 06:28:20 UTC 2025


On Tue, 14 Oct 2025 08:49:03 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> First step would be JDK 21. JDK 17 I'm not sure. It'll depend how the patch will look like.

JDK 21 patch is mostly clean (minor context issue). I will do the backport next week, if @fitzsim does not take it over. JDK 17 backport won't be clean, JDK 17 doesn't have [JDK-8301479](https://bugs.openjdk.org/browse/JDK-8301479) and [JDK-8238161](https://bugs.openjdk.org/browse/JDK-8238161) (NULLs were replaced with nullptr, fopens with os::fopen, both are irrelevant to this patch), [JDK-8347129](https://bugs.openjdk.org/browse/JDK-8347129) (backport is underway) and [JDK-8261242](https://bugs.openjdk.org/browse/JDK-8261242) which I consider a context conflict, not really a dependency (only the variable name has changed).

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

PR Comment: https://git.openjdk.org/jdk/pull/23811#issuecomment-3404754072


More information about the hotspot-dev mailing list