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

Ensure that interruption of concurrent get doesn't cause deadlocks in other threads #174

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

kyri-petrou
Copy link
Contributor

/fixes #172

The main change is that instead of relying on suspendSucceed and manual interruption handling, we wrap everything in an uninterruptibleMask and use restore(...) only on parts that we wish to be be interruptible. This way we don't run into race conditions where we might get an interruption just before we evaluate an effect that ends in onInterrupt

@kyri-petrou kyri-petrou merged commit e159024 into series/2.x Feb 20, 2025
27 checks passed
@kyri-petrou kyri-petrou deleted the fix-concurrent-get-interruption-deadlock branch February 20, 2025 06:45
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.

Cache#get can hang in case of interruption
2 participants