]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Jun 2025 17:07:07 +0000 (19:07 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 17:07:07 +0000 (17:07 +0000)
commit80fc62f8af957fe77c8bcf7936a9b2df920671e3
treed3ef29e97f02d718b735824abc9b25927437000b
parentdf1c12424080d7a09d823d781b8144bc1f85153a
[3.14] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) (gh-135946)

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