[crac] RFR: 8365241: [CRaC] Ignore new arguments when CRaCIgnoreRestoreIfUnavailable is true
Timofei Pushkin
tpushkin at openjdk.org
Tue Aug 12 07:05:40 UTC 2025
On Mon, 11 Aug 2025 18:16:58 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:
>> Arguments are not passed to the restored process when `-XX:+CRaCIgnoreRestoreIfUnavailable` is set on restore. The check is performed on the side of the restoring VM since in the restored VM `CRaCIgnoreRestoreIfUnavailable` could have been set before the current restore.
>>
>> Documentation for the new arguments feature and `CRaCIgnoreRestoreIfUnavailable` is also added, explaining this behavior.
>
> Is there a use case when the passed new arguments/main *are* useful? Is there a s testcase for it? (I have been quickly searching it now but I haven't found it.)
@jankratochvil There is a demo `src/demo/share/crac/JavaCompilerCRaC` which you use as described here https://github.com/openjdk/crac/pull/16#issuecomment-1036140922.
-------------
PR Comment: https://git.openjdk.org/crac/pull/261#issuecomment-3177971287
More information about the crac-dev
mailing list