Skip to content

Commit d912055

Browse files
Merge branch '3.14' into backport-0274d83-3.14
2 parents efb2dab + 1fa52c3 commit d912055

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Doc/library/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ FileType objects
19341934
run and then use the :keyword:`with`-statement to manage the files.
19351935

19361936
.. versionchanged:: 3.4
1937-
Added the *encodings* and *errors* parameters.
1937+
Added the *encoding* and *errors* parameters.
19381938

19391939
.. deprecated:: 3.14
19401940

Include/internal/pycore_dict.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ _PyDict_NotifyEvent(PyInterpreterState *interp,
286286
PyObject *value)
287287
{
288288
assert(Py_REFCNT((PyObject*)mp) > 0);
289-
int watcher_bits = FT_ATOMIC_LOAD_UINT64_RELAXED(mp->_ma_watcher_tag) & DICT_WATCHER_MASK;
289+
int watcher_bits = FT_ATOMIC_LOAD_UINT64_ACQUIRE(mp->_ma_watcher_tag) & DICT_WATCHER_MASK;
290290
if (watcher_bits) {
291291
RARE_EVENT_STAT_INC(watched_dict_modification);
292292
_PyDict_SendEvent(watcher_bits, event, mp, key, value);

Include/internal/pycore_pyatomic_ft_wrappers.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ extern "C" {
4747
_Py_atomic_load_uint16_relaxed(&value)
4848
#define FT_ATOMIC_LOAD_UINT32_RELAXED(value) \
4949
_Py_atomic_load_uint32_relaxed(&value)
50+
#define FT_ATOMIC_LOAD_UINT64_ACQUIRE(value) \
51+
_Py_atomic_load_uint64_acquire(&value)
5052
#define FT_ATOMIC_LOAD_UINT64_RELAXED(value) \
5153
_Py_atomic_load_uint64_relaxed(&value)
5254
#define FT_ATOMIC_LOAD_ULONG_RELAXED(value) \
@@ -147,6 +149,7 @@ extern "C" {
147149
#define FT_ATOMIC_LOAD_UINT8_RELAXED(value) value
148150
#define FT_ATOMIC_LOAD_UINT16_RELAXED(value) value
149151
#define FT_ATOMIC_LOAD_UINT32_RELAXED(value) value
152+
#define FT_ATOMIC_LOAD_UINT64_ACQUIRE(value) value
150153
#define FT_ATOMIC_LOAD_UINT64_RELAXED(value) value
151154
#define FT_ATOMIC_LOAD_ULONG_RELAXED(value) value
152155
#define FT_ATOMIC_STORE_PTR_RELAXED(value, new_value) value = new_value

0 commit comments

Comments
 (0)