[crac] RFR: Provide arguments for restore [v5]
Anton Kozlov
akozlov at openjdk.java.net
Mon Mar 21 18:59:09 UTC 2022
On Fri, 18 Mar 2022 14:08:42 GMT, Dan Heidinga <heidinga at openjdk.org> wrote:
> the current code will allow exceptions thrown by the `newMain` method (and its callees) to propagate past the checkpoint spot and makes the caller of the checkpoint code need to handle them.
An exception from the newMain will be wrapped in InvocationTargetException, which is caught and is suppressed by the RestoreException. Right? Otherwise, this java code won't compile, as checkpointRestore is declared to throw only {Checkpoint,Restore}Exception.
-------------
PR: https://git.openjdk.java.net/crac/pull/16
More information about the crac-dev
mailing list