Skip to content

Conversation

@drfloob
Copy link
Member

@drfloob drfloob commented Apr 25, 2025

Beep boop. This is an automatically generated backport of #38967.

drfloob and others added 2 commits April 21, 2025 19:56
…utting down (grpc#39258)

Potential alternative fix for grpc#39240.

When the WorkStealingThreadPool is shutting down, the lifeguard thread could end up in a busy loop while waiting for the pool to quiesce. In some environments, this may prevent other threads from running in a timely manner, which can cause the process to hang. This PR adds a short delay on lifeguard thread's quiesce check, which grows exponentially to a maximum of 1 second if the thread pool is idle.

Closes grpc#39258

COPYBARA_INTEGRATE_REVIEW=grpc#39258 from drfloob:rm-busy-loop-in-wstp edec0bd
PiperOrigin-RevId: 748033010
Closes grpc#38967

COPYBARA_INTEGRATE_REVIEW=grpc#38967 from pawbhard:macos_sonoma_migrate_1 205f8c1
PiperOrigin-RevId: 735961672
@yashykt yashykt merged commit 5f27d0b into grpc:v1.70.x Apr 30, 2025
43 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants