[crac] RFR: Prevent concurrent cleanup by cleaner thread and checkpoint notifications
Radim Vansa
duke at openjdk.org
Wed May 31 07:57:19 UTC 2023
On Tue, 30 May 2023 16:19:24 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
>> The interrupt wakes up cleaner in `queue.remove()` (line 161) in case it's blocking for next task.
>
> OK, thanks. But what if the interrupt arrives to the thread during a cleaning while that runs, it may interrupt the cleaning, right?
That's correct; I don't see any way to mitigate that, though, besides changing the queue implementation to allow more targeted wakeup.
-------------
PR Review Comment: https://git.openjdk.org/crac/pull/73#discussion_r1211242978
More information about the crac-dev
mailing list