RFR: 8350820: The OperatingSystemMXBean cpuLoad() methods return -1.0 in Windows
Kevin Walls
kevinw at openjdk.org
Fri Feb 28 09:39: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.
Yes this looks good. I also built and verified in JConsole we get good data from the cpu usage monitors.
-------------
Marked as reviewed by kevinw (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/23832#pullrequestreview-2650240621
More information about the serviceability-dev
mailing list