[crac] Integrated: Don't crash the VM if checkpointing fails

Volker Simonis simonis at openjdk.org
Wed Jun 29 12:15:13 UTC 2022


On Wed, 29 Jun 2022 08:23:21 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> Currently, if checkpointing is failing (because the `criu` executable can't be find or if `criu dump` returns an error) the JVM will crash with:
> 
> $ java -XX:+CRPrintResourcesOnCheckpoint -XX:CCheckpointTo=/tmp/crac HelloWait
> HelloWorld
> JVM: FD fd=0 type=character: details1="/dev/pts/9" OK: inherited from process env
> JVM: FD fd=1 type=character: details1="/dev/pts/9" OK: inherited from process env
> JVM: FD fd=2 type=character: details1="/dev/pts/9" OK: inherited from process env
> JVM: FD fd=3 type=regular: details1="/output/crac-dbg/images/jdk/lib/modules" OK: inherited from process env
> CR: Checkpoint ...

This pull request has now been integrated.

Changeset: 28621cd2
Author:    Volker Simonis <simonis at openjdk.org>
URL:       https://git.openjdk.org/crac/commit/28621cd2ef51dcb37aae5f0c414fe1d5e2475283
Stats:     26 lines in 3 files changed: 0 ins; 25 del; 1 mod

Don't crash the VM if checkpointing fails

Reviewed-by: akozlov

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

PR: https://git.openjdk.org/crac/pull/25


More information about the crac-dev mailing list