Skip to content

[3.14] gh-148393: Use acquire load for _ma_watcher_tag in dict notify event (gh-148509)#148512

Merged
colesbury merged 1 commit intopython:3.14from
miss-islington:backport-19f96f9-3.14
Apr 13, 2026
Merged

[3.14] gh-148393: Use acquire load for _ma_watcher_tag in dict notify event (gh-148509)#148512
colesbury merged 1 commit intopython:3.14from
miss-islington:backport-19f96f9-3.14

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 13, 2026

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 19f96f9)

Co-authored-by: Sam Gross colesbury@gmail.com

…event (pythongh-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.
(cherry picked from commit 19f96f9)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury colesbury enabled auto-merge (squash) April 13, 2026 18:13
@colesbury colesbury disabled auto-merge April 13, 2026 18:13
@colesbury colesbury enabled auto-merge (squash) April 13, 2026 18:13
@colesbury colesbury merged commit 1fa52c3 into python:3.14 Apr 13, 2026
50 checks passed
@miss-islington miss-islington deleted the backport-19f96f9-3.14 branch April 13, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants