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

rt: coop should yield using waker defer strategy #7185

Merged
merged 6 commits into from
Mar 4, 2025

Conversation

carllerche
Copy link
Member

@carllerche carllerche commented Feb 27, 2025

PR #5223 introduces a waker defer list to handle yielding tasks. This defer list enables the runtime to poll the driver between yields. Previously, the coop path did not use the defer yield path, preventing the runtime driver from being checked. This PR updates the coop yield logic to use the defer strategy.

Merging this PR should be coordinated with #7164.

PR #5223 introduces a waker defer list to handle yielding tasks. This defer
list enables the runtime to poll the driver between yields. Previously, the
coop path did not use the defer yield path which prevents the runtime driver
from being checked. This PR updates the coop yield logic to use the defer
strategy.
@carllerche carllerche added C-bug Category: This is a bug. A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime labels Feb 27, 2025
@carllerche carllerche requested a review from Darksonn February 27, 2025 17:39
@carllerche
Copy link
Member Author

It looks like the quinn tests are flaky.

@Darksonn Darksonn added the M-coop Module: tokio/coop label Feb 28, 2025
@Darksonn Darksonn merged commit 710bc80 into master Mar 4, 2025
82 checks passed
@Darksonn Darksonn deleted the coop-yield-should-use-defer branch March 4, 2025 14:02
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-bug Category: This is a bug. M-coop Module: tokio/coop M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants