]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout...
authorSam Gross <colesbury@gmail.com>
Wed, 25 Jun 2025 17:09:17 +0000 (13:09 -0400)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 17:09:17 +0000 (17:09 +0000)
commitc64df2a3ec39a916a011baaa9b8a305d15bf091c
treece3c390bf74a5ea229bcd2485646ab7b487ae88f
parent86c050a5ca9f27851ecc85f436c4dac42d2004df
[3.13] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) (gh-135947)

The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
(cherry picked from commit cbfaf41caf135b8598a560854cd59e992a2ccfed)

Co-authored-by: Joseph Tibbertsma <josephtibbertsma@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2025-06-23-18-08-32.gh-issue-135871.50C528.rst [new file with mode: 0644]
Python/lock.c