[8u] RFR: 8247469: getSystemCpuLoad() returns -1 on linux when some offline cpus are present and cpusets.effective_cpus is not available
Andrew Hughes
gnu.andrew at redhat.com
Tue Aug 3 03:39:35 UTC 2021
On 18:28 Tue 13 Jul , Severin Gehwolf wrote:
> Hi,
>
> This is a prerequisite backport for JDK-8265836, which I'd like to
> bring to OpenJDK 8u as the bug is present there too[2]. Note that the
> OperatingSystemMXBean has been made container aware with JDK-8226575[1]
> in 8u272 and better.
>
> The OpenJDK 11u patch doesn't apply cleanly due to restructuring of the
> code in later JDKs. The gist of the patch is still the same. One
> addition of note is the mapfile-vers change for the new native method.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8247469
> webrev: https://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8247469/jdk8/02/webrev/
>
> Testing: Builds on Linux x86_64, Solaris Sparc, AIX.
> Manually via the reproducer for JDK-8265836. Tier 1 on Linux x86_64
>
> Thoughts?
>
> Thanks,
> Severin
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8226575
> [2] https://bugs.openjdk.java.net/browse/JDK-8269874?focusedCommentId=14432127&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14432127
>
Looks good to me. Approved.
--
Andrew :)
Pronouns: he / him or they / them
Senior Free Java Software Engineer
OpenJDK Package Owner
Red Hat, Inc. (http://www.redhat.com)
PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222
More information about the jdk8u-dev
mailing list