[crac] RFR: 8364538: [CRaC] Test CRaCIgnoreRestoreIfUnavailable [v2]

Timofei Pushkin tpushkin at openjdk.org
Tue Aug 5 13:10:36 UTC 2025


On Tue, 5 Aug 2025 12:34:17 GMT, Radim Vansa <rvansa at openjdk.org> wrote:

>> If we had some library-based engine besides `crexec` I would use that
>
> Could we use `-XX:CRaCEngineOptions=fail-with=unknown-option` instead? Or even `-XX:CRaCEngine=non-existent`?

No, these are both VM-side failures, I could add tests for those but they are all currently handled in the same way w.r.t. `CRaCIgnoreRestoreIfUnavailable` so I don't see a point.

This test is supposed to check a failure that is detected inside the `CRaCEngine::restore()` call, inside the engine library, and makes the call return.

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

PR Review Comment: https://git.openjdk.org/crac/pull/255#discussion_r2254289745


More information about the crac-dev mailing list