]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148393: Use acquire load for _ma_watcher_tag in dict notify event (gh-148509)
authorSam Gross <colesbury@gmail.com>
Mon, 13 Apr 2026 18:11:28 +0000 (14:11 -0400)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2026 18:11:28 +0000 (14:11 -0400)
commit19f96f99febe9eadbcc58ffc042791fb017ac90b
treeb91260890763413588b04545f129e03f6931c2b8
parente6893943b75c6b0ea54c2db99bdf1436f404a87a
gh-148393: Use acquire load for _ma_watcher_tag in dict notify event (gh-148509)

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.
Include/internal/pycore_dict.h
Include/internal/pycore_pyatomic_ft_wrappers.h