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

Anton Kozlov akozlov at openjdk.org
Wed May 31 11:55:24 UTC 2023


On Wed, 31 May 2023 07:54:59 GMT, Radim Vansa <duke at openjdk.org> wrote:

>> 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.

Hmm, this is a problem. ReferenceQueue may have a JDK-internal interface via SharedSecretes to interrupt the wait. Or the interface to remove entries without any wait.

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

PR Review Comment: https://git.openjdk.org/crac/pull/73#discussion_r1211586523


More information about the crac-dev mailing list