[crac] Integrated: 8371337: [CRaC] Fastdebug build fails when calling OperatingSystemMxBean.getProcessCpuLoad after restore
Radim Vansa
rvansa at openjdk.org
Mon Nov 24 08:16:44 UTC 2025
On Wed, 5 Nov 2025 12:21:23 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.
This pull request has now been integrated.
Changeset: e288b416
Author: Radim Vansa <rvansa at openjdk.org>
URL: https://git.openjdk.org/crac/commit/e288b416f0ffa0c1031188fd3a34e582dd00cc19
Stats: 65 lines in 2 files changed: 62 ins; 3 del; 0 mod
8371337: [CRaC] Fastdebug build fails when calling OperatingSystemMxBean.getProcessCpuLoad after restore
Reviewed-by: tpushkin
-------------
PR: https://git.openjdk.org/crac/pull/274
More information about the crac-dev
mailing list