cpython/Doc/data
Sam Gross d6b6fd70c4
[3.14] gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233) (#149691)
In free-threaded builds, concurrent calls to PyDict_AddWatcher, PyDict_ClearWatcher, PyDict_Watch, and PyDict_Unwatch can race on the shared callback array and the per-dict watcher tags. This change adds a mutex to serialize watcher registration and removal, atomic operations for tag updates, and atomic acquire/release synchronization for callback dispatch in _PyDict_SendEvent.

(cherry picked from commit 8a4895985f)

Co-authored-by: Alper <alperyoney@fb.com>
2026-05-12 13:21:31 -04:00
..
python3.14.abi [3.14] gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233) (#149691) 2026-05-12 13:21:31 -04:00
refcounts.dat [3.14] Document that PyType_GetModule returns a borrowed ref (GH-145612) (GH-145682) 2026-03-10 10:06:08 +01:00
stable_abi.dat [3.14] gh-141909: Add PyModuleDef_Slot and earlier Py_mod_* constants to stable ABI manifest (#141910) (GH-141978) 2025-11-26 15:35:04 +01:00
threadsafety.dat [3.14] gh-142518: add thread safety docs for dict and set APIs (#148392) 2026-04-11 21:52:38 +05:30