Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspace: Fixes to workspace lock write-upgrade detection #5371

Merged

Commits on Sep 19, 2022

  1. workspace: Fixes to workspace lock write-upgrade detection

    We use a queue since there will be more mutations than traversals.
    We only mark thread as holding read lock once it actually does. We
    only check for write upgrade when tryLock times out so we can
    potentially avoid traversing the queue.
    
    Tests are also added.
    
    Signed-off-by: BJ Hargrave <bj@hargrave.dev>
    bjhargrave committed Sep 19, 2022
    Copy the full SHA
    3ca0efb View commit details
    Browse the repository at this point in the history