Skip to content

Conversation

@yoney
Copy link
Contributor

@yoneyyoney commented Oct 28, 2025

Similar to #140555, the main goal was to review the lzma module for free-threading. The methods already use a lock, which makes them thread-safe in a free-threaded build. I replaced PyThread_acquire_lock with PyMutex. PyMutex releases the GIL when the thread is parked. This change removes some macros and allocation handling code.

cc: @mpage@colesbury@emmatyping

@yoneyyoney marked this pull request as ready for review October 28, 2025 16:39
@kumaraditya303kumaraditya303 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 8, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 92a8faa 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140711%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 8, 2025
@kumaraditya303kumaraditya303 merged commit c13b592 into python:mainNov 11, 2025
123 of 124 checks passed
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@yoneyyoney deleted the ft_lzma branch January 27, 2026 17:07
Sign up for freeto 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.

6 participants

@yoney@bedevere-bot@ZeroIntensity@kumaraditya303@ashm-dev@mpage