jmx-dev RFR: JDK-8030957 - AIX: Implement OperatingSystemMXBean.getSystemCpuLoad() and .getProcessCpuLoad() on AIX [v4]

Suchismith Roy sroy at openjdk.org
Mon Aug 25 09:30:56 UTC 2025


On Thu, 7 Aug 2025 06:01:12 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> Suchismith Roy has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update ProblemList.txt
>
> src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c line 102:
> 
>> 100:         prev_timebase = curr_stats.last_timebase;
>> 101:         initialized = 1;
>> 102:         return -1.0;
> 
> Here, and above in the other function: this seems wrong and would result in the first measurement to be off (or very large if displayed as unsigned).
> 
> See how Linux does it in perfInit().

@tstuefe  You mean the first load calculated would be -1 and that would be an issue ? or is it about finding the right delta between measurements ?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25332#discussion_r2297589566


More information about the jmx-dev mailing list