[crac] RFR: RCU Lock - RW lock with very lightweight read- and heavyweight write-locking [v2]
Radim Vansa
duke at openjdk.org
Wed Apr 12 13:11:07 UTC 2023
On Wed, 12 Apr 2023 12:27:14 GMT, Radim Vansa <duke at openjdk.org> wrote:
>> This implementation is suitable for uses where the write-locking happens very rarely (if at all), as in the case of CRaC checkpoint, and we don't want to slow down regular access to the protected resource.
>
> Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:
>
> Reuse MethodHandles.lookup()
>
> Co-authored-by: Dan Heidinga <heidinga at redhat.com>
@DanHeidinga Thanks for those hints on error handling, I've corrected them in the last commit.
I've also made the list of methods mutable, implemented binary search for lookup and created a central lock that other components could easily use. This is not used anywhere, yet; the exact way to consume this in user code is up for discussion.
-------------
PR Comment: https://git.openjdk.org/crac/pull/58#issuecomment-1505250260
More information about the crac-dev
mailing list