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

chore: merge 1.29.x into master #5839

Merged
merged 3 commits into from
Jun 29, 2023
Merged

chore: merge 1.29.x into master #5839

merged 3 commits into from
Jun 29, 2023

Conversation

carllerche
Copy link
Member

No description provided.

This patch fixes a bug where nesting `block_in_place` with a `block_on`
between could lead to a panic. This happened because the nested
`block_in_place` would try to acquire a core on return when it should
not attempt to do so. The `block_on` between the two nested
`block_in_place` altered the thread-local state to lead to the incorrect
behavior.

The fix is for each call to `block_in_place` to track if it needs to try
to steal a core back.

Fixes #5239
@carllerche carllerche added the C-maintenance Category: PRs that clean code up or issues documenting cleanup. label Jun 29, 2023
@carllerche carllerche merged commit 9dbf187 into master Jun 29, 2023
63 checks passed
@carllerche carllerche deleted the merge-1.29.x branch June 29, 2023 23:18
@Darksonn Darksonn added the A-tokio Area: The main tokio crate label Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants