[jdk11u-dev] RFR: 8265836: OperatingSystemImpl.getCpuLoad() returns incorrect CPU load inside a container
Severin Gehwolf
sgehwolf at openjdk.java.net
Tue Jun 8 10:08:21 UTC 2021
JDK-8265836 applies to OpenJDK 11u as well. Patch applies clean. The only difference is in context. JDK head changed method `getCpuLoad()` while the JDK 11u backport changes `getSystemCpuLoad()` as that name hasn't been changed when the OperatingSystemMXBean has been made container aware in 11u.
Testing: Manual using the reproducer of the bug. See the backport bug for details.
-------------
Commit messages:
- Backport ef368b32bc8609bdc46cda628fa25e9bcad751e3
Changes: https://git.openjdk.java.net/jdk11u-dev/pull/20/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=20&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8265836
Stats: 90 lines in 4 files changed: 78 ins; 2 del; 10 mod
Patch: https://git.openjdk.java.net/jdk11u-dev/pull/20.diff
Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/20/head:pull/20
PR: https://git.openjdk.java.net/jdk11u-dev/pull/20
More information about the jdk-updates-dev
mailing list