[crac] RFR: 8371337: [CRaC] Fastdebug build fails when calling OperatingSystemMxBean.getProcessCpuLoad after restore [v2]
Radim Vansa
rvansa at openjdk.org
Fri Nov 21 07:37:31 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/crac/pull/274/files
- new: https://git.openjdk.org/crac/pull/274/files/284b7130..23d66dda
Webrevs:
- full: https://webrevs.openjdk.org/?repo=crac&pr=274&range=01
- incr: https://webrevs.openjdk.org/?repo=crac&pr=274&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/crac/pull/274.diff
Fetch: git fetch https://git.openjdk.org/crac.git pull/274/head:pull/274
PR: https://git.openjdk.org/crac/pull/274
More information about the crac-dev
mailing list