[jdk8u-dev] RFR: 8239559: Cgroups: Incorrect detection logic on some systems

Jonathan Dowland jdowland at openjdk.org
Thu Oct 13 09:41:56 UTC 2022


This is a backport of 53ee0c4963007b86db7979312b81f990e6ce271a via the 11u backport 53ee0c4963007b86db7979312b81f990e6ce271a for cgroups v2 support in jdk8u-dev.

It isn't clean: context differences in CgroupSubsystemFactory.java around the use of post-8u logging in the original patch.

I also had to Optional.isEmpty which is not present in 8u's Optional.

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

Depends on: https://git.openjdk.org/jdk8u-dev/pull/135

Commit messages:
 - replace post-jdk8u Optional.isEmpty
 - 8239559: Cgroups: Incorrect detection logic on some systems

Changes: https://git.openjdk.org/jdk8u-dev/pull/136/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=136&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8239559
  Stats: 292 lines in 2 files changed: 263 ins; 21 del; 8 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/136.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev pull/136/head:pull/136

PR: https://git.openjdk.org/jdk8u-dev/pull/136


More information about the jdk8u-dev mailing list