Skip to content

test: remove churn() task from lifo_stealable#8070

Merged
hawkw merged 1 commit intomasterfrom
eliza/no-churn
Apr 20, 2026
Merged

test: remove churn() task from lifo_stealable#8070
hawkw merged 1 commit intomasterfrom
eliza/no-churn

Conversation

@hawkw
Copy link
Copy Markdown
Member

@hawkw hawkw commented Apr 18, 2026

Currently, the rt_threaded::lifo_stealable test I added in #7431 spawns an additional task which sleeps on a 4ms timer in a loop. This ensures that no worker remains permanently parked. This was added because it was necessary to stop the LIFO slot deadlock from occurring prior to changes in the logic for determining whether to notify another worker, which is what @Darksonn was referring to in this comment. Removing the churn() test makes the test actually validate that another worker is notified to steal the LIFO task, and that the changes from #7431 will always prevent a LIFO slot deadlock, regardless of the behavior of other tasks on the runtime. See also this comment for further discussion.

Now, we don't rely on the presence of another task to prevent workers
from parking in the test. This way, it validates that we are correctly
unparking other workers. See
#8069 (comment)
@hawkw hawkw requested a review from Darksonn April 18, 2026 18:43
@hawkw hawkw self-assigned this Apr 18, 2026
@hawkw hawkw added A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime labels Apr 18, 2026
@hawkw hawkw enabled auto-merge (squash) April 18, 2026 18:49
Copy link
Copy Markdown
Member

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@hawkw hawkw merged commit 6c03e03 into master Apr 20, 2026
102 checks passed
@hawkw hawkw deleted the eliza/no-churn branch April 20, 2026 19:03
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 M-runtime Module: tokio/runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants