[crac] RFR: 8371337: [CRaC] Fastdebug build fails when calling OperatingSystemMxBean.getProcessCpuLoad after restore [v2]

Timofei Pushkin tpushkin at openjdk.org
Sat Nov 22 12:21:51 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

Marked as reviewed by tpushkin (Committer).

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

PR Review: https://git.openjdk.org/crac/pull/274#pullrequestreview-3496728637


More information about the crac-dev mailing list