[crac] RFR: 8371337: [CRaC] Fastdebug build fails when calling OperatingSystemMxBean.getProcessCpuLoad after restore [v2]
Radim Vansa
rvansa at openjdk.org
Fri Nov 21 17:36:12 UTC 2025
On Fri, 21 Nov 2025 07:37:31 GMT, Radim Vansa <rvansa at openjdk.org> wrote:
>> A JVM that executed OperatingSystemImpl.getProcessCpuLoad() before checkpoint can fail with assertion failure after restore with:
>>
>> java: /home/rvansa/work/zulu/src/jdk.management/linux/native/libmanagement_ext/UnixOperatingSystem.c:291: get_cpuload_internal: Assertion `pticks->usedKernel >= tmp.usedKernel' failed.
>>
>> This is an assertion failure, therefore failing only in debug builds, and providing probably a non-sense value in release builds. We should remove the assertion and return a negative value (documented as value for ‘unavailable’) if this is detected.
>
> Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:
>
> Check all partial counters
@TimPushkin Updated (I forgot to push the change earlier), please review.
-------------
PR Comment: https://git.openjdk.org/crac/pull/274#issuecomment-3564007205
More information about the crac-dev
mailing list