Skip to content

[3.15] gh-157914: Revert "gh-135871: Reload lock internal state while spinning in PyMutex_LockTimed (gh-146064)" (gh-158082) - #158290

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-baec764-3.15
Sep 30, 2026
Merged

hugovk merged 1 commit into
python:3.15from
miss-islington:backport-baec764-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

…while spinning in `PyMutex_LockTimed` (pythongh-146064)" (pythongh-158082)

(cherry picked from commit baec764)

Co-authored-by: Daniele Parmeggiani <daniele.parmeggiani@arm.com>
@leandrodamascena

Copy link
Copy Markdown

Hi! I run a small project that benchmarks CPython builds on AWS Lambda to catch performance regressions before they reach a runtime release, and it picked up this one on the 3.15 branch too.

On a free-threaded build with PYTHON_GIL=0, the change made my benchmark about 43–47% slower across two separate runs. The regular GIL build wasn't affected.

Since the last release candidate still has it, it would be great to get this revert into 3.15.0. Thanks @dpdani for tracking it down!

@dpdani

dpdani commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

@hugovk do you want to merge?

@hugovk
hugovk merged commit 55ab336 into python:3.15 Sep 30, 2026
56 checks passed
@miss-islington
miss-islington deleted the backport-baec764-3.15 branch September 30, 2026 10:17
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.

4 participants