[jdk21u-dev] RFR: 8331560: Refactor Hotspot container detection code so that subsystem delegates to controllers

Jan Kratochvil jkratochvil at openjdk.org
Tue Apr 15 13:24:52 UTC 2025


A patch 4 of 6 for: [[21u] Backport intention of 8322420: [Linux] cgroup v2: Limits in parent nested control groups are not detected](https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-April/043206.html)

It has a patch dependency on PR 3 of 6: https://github.com/openjdk/jdk21u-dev/pull/1650

This backport is clean.

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

Commit messages:
 - 8331560: Refactor Hotspot container detection code so that subsystem delegates to controllers
 - 8261242: [Linux] OSContainer::is_containerized() returns true when run outside a container
 - src/java.base/linux/native/libjava/CgroupMetrics.c:42:(.text+0x11): undefined reference to `JVM_IsContainerized'
 - 8333326: Linux Alpine build fails after 8302744
 - 8302744: Refactor Hotspot container detection code

Changes: https://git.openjdk.org/jdk21u-dev/pull/1651/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1651&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8331560
  Stats: 2132 lines in 25 files changed: 1295 ins; 575 del; 262 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1651.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1651/head:pull/1651

PR: https://git.openjdk.org/jdk21u-dev/pull/1651


More information about the jdk-updates-dev mailing list