[jdk11u-dev] RFR: 8281181: Do not use CPU Shares to compute active processor count

Severin Gehwolf sgehwolf at openjdk.org
Mon Jul 4 09:49:26 UTC 2022


On Fri, 1 Jul 2022 13:25:49 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> jdk11u-dev backport of 8281181,  copyright headers needed adjustment and minor diffs in strides

Almost good to go. File `src/hotspot/os/linux/cgroupSubsystem_linux.cpp` is missing the copyright year update from the original patch and a tiny nit below.

test/hotspot/jtreg/containers/docker/TestCPUAwareness.java line 221:

> 219:             .addDockerOpts("--cpu-shares=" + shares);
> 220: 
> 221:         if (useContainerCpuShares) opts.addJavaOpts("-XX:+UseContainerCpuShares");

The JDK 18u patch has an additional `System.out.println("useContainerCpuShares = " + useContainerCpuShares);` on line 210 of this file which is missing in this backport.

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

Changes requested by sgehwolf (Reviewer).

PR: https://git.openjdk.org/jdk11u-dev/pull/1196


More information about the jdk-updates-dev mailing list