[crac] RFR: RCU Lock - RW lock with very lightweight read- and heavyweight write-locking
Radim Vansa
duke at openjdk.org
Wed Apr 12 09:15:27 UTC 2023
On Wed, 12 Apr 2023 08:57:48 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.
After implementing this I realized that it could be possible to implement the check using `Thread.getAllStackTraces()` and process the stacks in Java; that's even heavier, though.
I will yet explore extending implementation with more dynamic list of methods; such implementation could let us use only one instance of RCULock in the VM.
-------------
PR Comment: https://git.openjdk.org/crac/pull/58#issuecomment-1504920463
More information about the crac-dev
mailing list