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

fix: double-checked locking fail #392

Merged
merged 1 commit into from
Nov 15, 2023
Merged

fix: double-checked locking fail #392

merged 1 commit into from
Nov 15, 2023

Conversation

alecthomas
Copy link
Collaborator

We use double-checked locking to avoid locks on the fast-path, but I modified the behaviour in #390 to cache the result before the lock, removing the second check. Face palm.

This fixes #391

We use double-checked locking to avoid locks on the fast-path, but I
cached the result before the lock, removing the second check. Face palm.

This fixes #391
@alecthomas alecthomas merged commit 880e21c into master Nov 15, 2023
7 checks passed
@alecthomas alecthomas deleted the aat/fix-checks branch November 15, 2023 22:48
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.

Race condition when bootstrapping a single binary
2 participants