]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-148393: Use acquire load for _ma_watcher_tag in dict notify event (gh-14850...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Apr 2026 18:38:15 +0000 (20:38 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 18:38:15 +0000 (18:38 +0000)
commit1fa52c3c84939ad37472ebf3727e3ad97607a4ab
tree3b7affbe5ecf57bf17f2c761c3d83de4f9f1bda0
parente74e59d42a41ea18a912543a71a3a1e5e049d9e2
[3.14] gh-148393: Use acquire load for _ma_watcher_tag in dict notify event (gh-148509) (#148512)

The watcher-bits read in _PyDict_NotifyEvent needs to use acquire to
synchronize with the release from PyDict_Watch so that the callback
publication is visible before the callback is invoked.
(cherry picked from commit 19f96f99febe9eadbcc58ffc042791fb017ac90b)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Include/internal/pycore_dict.h
Include/internal/pycore_pyatomic_ft_wrappers.h