Skip to content

Various free-threading fixes#504

Merged
jamadden merged 6 commits intomasterfrom
freethreading-fixes
Apr 8, 2026
Merged

Various free-threading fixes#504
jamadden merged 6 commits intomasterfrom
freethreading-fixes

Conversation

@jamadden
Copy link
Copy Markdown
Contributor

@jamadden jamadden commented Apr 7, 2026

Fixes #503

jamadden added 6 commits April 6, 2026 13:07
…ecking all the time. Broaden an assert in ~TThreadState to allow for the thread being dead. Slightly better atomicity for marking a thread dead. Turn an assertion into an explicit error check in UserGreenlet.g_switch. Add a test that was hitting some invalid assertions and crashing, which it no longer does.
…k for (prohibit) cross-thread switches early on free-threaded builds. This fixes some corruption around argument handling. The TLBC issue may also be corrected; at least, I don't reproduce it anymore.
@jamadden jamadden merged commit 0f86075 into master Apr 8, 2026
121 of 181 checks passed
@jamadden jamadden deleted the freethreading-fixes branch April 8, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Free-threaded CPython support - follow-up

1 participant