Skip to content

[3.15] gh-162764: Avoid 1 ms STW delay when a thread detaches (gh-162771) - #162993

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-ce50df4-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-ce50df4-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Reduce the latency of stop-the-world pauses in the free-threaded build.
Threads that detach (for example, to block on a lock or around a blocking
call) while a pause is pending now notify the requesting thread, and threads
waiting to re-attach after a previous pause are asked to stop. Previously,
such pauses could be delayed by about one millisecond.
(cherry picked from commit ce50df4)

Co-authored-by: Neil Schemenauer [email protected]

…h-162771)

Reduce the latency of stop-the-world pauses in the free-threaded build.
Threads that detach (for example, to block on a lock or around a blocking
call) while a pause is pending now notify the requesting thread, and threads
waiting to re-attach after a previous pause are asked to stop.  Previously,
such pauses could be delayed by about one millisecond.
(cherry picked from commit ce50df4)

Co-authored-by: Neil Schemenauer <[email protected]>
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.

2 participants