[jdk11u-dev] RFR: 8272124: Cgroup v1 initialization causes NullPointerException when cgroup path contains colon

Severin Gehwolf sgehwolf at openjdk.java.net
Tue Aug 24 17:42:35 UTC 2021


Please review this defensive backport of JDK-8272124. OpenJDK 11u is affected too, but it manifests in a different way. Basically Java metrics report wrong results on affected system where the cgroup path contains a colon. The JDK 18 patch doesn't apply cleanly since JDK-8230305 (cgroups v2 support) isn't in 11u. Test support in 11 isn't ass good as well, thus dropped the test changes.

Also, I've kept the token number filter to keep using `>=  3` since that's the more defensive approach. It's not clear if systems with `/proc/self/cgroup` files exist in the wild with less than 3 tokens.

Thoughts?

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

Commit messages:
 - Backport 4d6593ce0243457e7431a5990957a8f880e0a3fb

Changes: https://git.openjdk.java.net/jdk11u-dev/pull/292/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=292&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8272124
  Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk11u-dev/pull/292.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/292/head:pull/292

PR: https://git.openjdk.java.net/jdk11u-dev/pull/292


More information about the jdk-updates-dev mailing list