Skip to content

[3.14] gh-158195: Do not hold the type lock during stop-the-world - #161586

Draft
nascheme wants to merge 1 commit into
python:3.14from
nascheme:gh-158195-unpin-type-lock-3.14
Draft

nascheme wants to merge 1 commit into
python:3.14from
nascheme:gh-158195-unpin-type-lock-3.14

Conversation

@nascheme

@nascheme nascheme commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Backport the type-lock deadlock fix and its default-build compatibility revision from the 3.15 branch.

Adapt slot updates and MRO/bases publication to the 3.14 implementation, retaining its existing layout-compatibility rules and using its internal tuple-copy API. Keep namespace-key normalization and fresh bases tuples limited to the free-threaded build.

Backport the type-lock deadlock fix and its default-build compatibility
revision from the 3.15 branch.

Adapt slot updates and MRO/bases publication to the 3.14 implementation,
retaining its existing layout-compatibility rules and using its internal
tuple-copy API. Keep namespace-key normalization and fresh bases tuples
limited to the free-threaded build.
@nascheme

nascheme commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

FYI, I'm waiting a bit merge this, just in case any issues crop up with the 3.15 backport.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-free-threading type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant