Skip to content

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

Merged
bjhargrave merged 1 commit intobndtools:masterfrom
bjhargrave:workspace-lock-deadlock-detection-fix
Sep 19, 2022
Merged

workspace: Fixes to workspace lock write-upgrade detection#5371
bjhargrave merged 1 commit intobndtools:masterfrom
bjhargrave:workspace-lock-deadlock-detection-fix

Conversation

@bjhargrave
Copy link
Member

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.

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 <[email protected]>
@bjhargrave bjhargrave merged commit e1eefb7 into bndtools:master Sep 19, 2022
@bjhargrave bjhargrave deleted the workspace-lock-deadlock-detection-fix branch September 19, 2022 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant