◐ Shell
clean mode source ↗

[3.13] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) by colesbury · Pull Request #135947 · python/cpython

Conversation

@colesbury

@colesbury colesbury commented

Jun 25, 2025

edited by bedevere-app Bot

Loading

pythongh-135872)

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

Co-authored-by: Joseph Tibbertsma <josephtibbertsma@gmail.com>

@colesbury colesbury changed the title [3.13] Fix needless spinning in _PyMutex_LockTimed with zero timeout (gh-135872) [3.13] gh-135871: Fix needless spinning in _PyMutex_LockTimed with zero timeout (gh-135872)

Jun 25, 2025

JUANMANUEL48432750

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing wrong!

Labels