[crac] Integrated: 8364449: [CRaC] Launch new main outside of the core C/R body
Timofei Pushkin
tpushkin at openjdk.org
Fri Aug 8 16:04:32 UTC 2025
On Thu, 31 Jul 2025 16:11:43 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:
> New main is now launched after restoration completes solving the issues outlined in the JBS task.
>
> Also the error message when the new main is not found (e.g. the feature is used by accident like in https://github.com/spring-projects/spring-framework/issues/33226) or throws an exception should become less cryptic:
>
> $ java -XX:CRaCRestoreFrom=cr -jar app.jar
> Exception in thread "main" jdk.crac.RestoreException
> Suppressed: java.lang.Exception: Failed to execute the new main entry: new initial class = 'app.jar', new main arguments = []. Do not specify these if you just wish to continue the checkpointed execution.
> at java.base/jdk.internal.crac.mirror.Core.checkpointRestore(Core.java:314)
> at java.base/jdk.internal.crac.mirror.Core.checkpointRestore(Core.java:263)
> at jdk.crac/jdk.crac.Core.checkpointRestore(Core.java:73)
> at Main.main(Main.java:4)
> Caused by: java.lang.ClassNotFoundException: app.jar
> at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
> at java.base/java.lang.Class.forName0(Native Method)
> at java.base/java.lang.Class.forName(Class.java:547)
> at java.base/jdk.internal.crac.mirror.Core.checkpointRestore(Core.java:302)
> ... 3 more
This pull request has now been integrated.
Changeset: a2a82469
Author: Timofei Pushkin <tpushkin at openjdk.org>
URL: https://git.openjdk.org/crac/commit/a2a824696e60c5e8f443982a2fc66d27f61e0e82
Stats: 516 lines in 6 files changed: 392 ins; 119 del; 5 mod
8364449: [CRaC] Launch new main outside of the core C/R body
Reviewed-by: rvansa
-------------
PR: https://git.openjdk.org/crac/pull/253
More information about the crac-dev
mailing list