]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872)
authorJoseph Tibbertsma <josephtibbertsma@gmail.com>
Wed, 25 Jun 2025 16:41:36 +0000 (09:41 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 16:41:36 +0000 (16:41 +0000)
commitcbfaf41caf135b8598a560854cd59e992a2ccfed
tree021ddd1a9eb29ffaebee3334c4b00b75f9a1c745
parenta88b49c3f2184428124890741778e92c0fdb6446
Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872)

The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
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