]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148393: Use atomic ops on _ma_watcher_tag in free threading build (gh-148397)
authorSam Gross <colesbury@gmail.com>
Sun, 12 Apr 2026 14:40:41 +0000 (10:40 -0400)
committerGitHub <noreply@github.com>
Sun, 12 Apr 2026 14:40:41 +0000 (10:40 -0400)
commit3ab94d684286b49144bf2e43cc1041f3e4c0cda8
treeb22d464c20bfec5cc1dc53d3de44db5fd95fdcb9
parent03d2f035d6dcfeee0c39b4b8a3ddb4dda01cddb6
gh-148393: Use atomic ops on _ma_watcher_tag in free threading build (gh-148397)

Fixes data races between dict mutation and watch/unwatch on the same dict.
Include/internal/pycore_dict.h
Include/internal/pycore_pyatomic_ft_wrappers.h
Lib/test/test_free_threading/test_dict.py
Misc/NEWS.d/next/Core_and_Builtins/2026-04-11-17-28-52.gh-issue-148393.lX6gwN.rst [new file with mode: 0644]
Objects/dictobject.c
Python/optimizer_analysis.c