diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-28 13:46:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 13:46:57 (GMT) |
commit | 77db337f1e69213e62ba79a797540cc4ac23492e (patch) | |
tree | 3c3807e1972611e7973abceca791498417d8834e /Include | |
parent | 7f7cfc41185b651be9cb4d2759c40c3abf738485 (diff) | |
download | cpython-77db337f1e69213e62ba79a797540cc4ac23492e.zip cpython-77db337f1e69213e62ba79a797540cc4ac23492e.tar.gz cpython-77db337f1e69213e62ba79a797540cc4ac23492e.tar.bz2 |
bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686)
_PyInterpreterState_IDIncref() now calls
_PyInterpreterState_IDInitref() and always increments id_refcount.
(cherry picked from commit 32c5a174445ec93747240cd8472012276ed27acf)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pystate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 96d5e31..1810533 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -140,7 +140,7 @@ struct _is { PyAPI_FUNC(struct _is*) _PyInterpreterState_LookUpID(PY_INT64_T); PyAPI_FUNC(int) _PyInterpreterState_IDInitref(struct _is *); -PyAPI_FUNC(void) _PyInterpreterState_IDIncref(struct _is *); +PyAPI_FUNC(int) _PyInterpreterState_IDIncref(struct _is *); PyAPI_FUNC(void) _PyInterpreterState_IDDecref(struct _is *); |