[crac] RFR: Prevent concurrent cleanup by cleaner thread and checkpoint notifications

Radim Vansa duke at openjdk.org
Tue May 16 11:59:12 UTC 2023


On Tue, 16 May 2023 11:52:54 GMT, Radim Vansa <duke at openjdk.org> wrote:

> We block the cleaner thread to prevent race conditions between this thread and checkpointing thread invoking clean().
> When the cleanup starts in cleaner thread the checkpoint will skip it, but without waiting for the cleanup to finish (which might be critical for the checkpoint, e.g. closing FDs).
> The limitation is that code performing C/R must not wait on any task completed by the cleaner.

This is an alternative to https://github.com/openjdk/crac/pull/70

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

PR Comment: https://git.openjdk.org/crac/pull/73#issuecomment-1549518441


More information about the crac-dev mailing list