RFR: 8350820: The OperatingSystemMXBean cpuLoad() methods return -1.0 in Windows

Julian Waters jwaters at openjdk.org
Fri Feb 28 12:05:52 UTC 2025


On Thu, 27 Feb 2025 23:23:07 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> The problem was introduced by the 
> https://bugs.openjdk.org/browse/JDK-8336289
> 
> This pr just revert changes in src/jdk.management/windows/native/libmanagement_ext/OperatingSystemImpl.c
> 
> The test fix is going to be pushed separately (for easy backporting) bug https://bugs.openjdk.org/browse/JDK-8350818
> 
> I verified that updated tests failed (bean returns -1.0) and now passed, also run tier1-5 testing.

Hopefully the standard snprintf can be reinstated in a fix quickly after this one

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

Marked as reviewed by jwaters (Committer).

PR Review: https://git.openjdk.org/jdk/pull/23832#pullrequestreview-2650552996


More information about the serviceability-dev mailing list