[crac] RFR: 8378446: [CRaC] Replace libcrexec with libcriuengine [v2]

Radim Vansa rvansa at openjdk.org
Wed Feb 25 13:07:43 UTC 2026


On Wed, 25 Feb 2026 09:16:17 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:

>> Radim Vansa has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
>> 
>>  - Merge remote-tracking branch 'origin/crac' into crexec_to_criuengine
>>  - Fix Windows build
>>  - 8378446: [CRaC] Replace libcrexec with libcriuengine
>
> src/java.base/linux/native/libcriuengine/criuhelper.c line 75:
> 
>> 73: }
>> 74: 
>> 75: static int restorewait(void) {
> 
> Do I understand correctly that this is needed because CRIU's executable (which this helper replaces as the restoree's parent) does not handle signals and return values in the same manner?

Correct, the process triggering restore might think that it can use the signals normally. This code can be traced back all the way to https://github.com/openjdk/crac/commit/f25eb7b886f59306346b0f19dc935dd7ab3114c6#diff-b768a59a1eadf0ad4a63bd5011db6952a5ecc7cbaa88e236f65798e38d42f117R12-R235

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

PR Review Comment: https://git.openjdk.org/crac/pull/297#discussion_r2852941817


More information about the crac-dev mailing list