-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: per-thread stack-pool for ExecutionContext::MultiThreaded
The current Fiber releases the dying fiber's stack to the pool before it switches context to another fiber, which means there is a time window during which a scheduler may pick the stack and start a new fiber while another scheduler still hasn't switched context, which will corrupt the stack.
- Loading branch information
1 parent
aba30c6
commit 048888f
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters