]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686)
authorVictor Stinner <vstinner@python.org>
Wed, 28 Apr 2021 13:46:57 +0000 (15:46 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 13:46:57 +0000 (15:46 +0200)
commit77db337f1e69213e62ba79a797540cc4ac23492e
tree3c3807e1972611e7973abceca791498417d8834e
parent7f7cfc41185b651be9cb4d2759c40c3abf738485
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)
Include/internal/pycore_pystate.h
Misc/NEWS.d/next/C API/2021-04-28-13-13-07.bpo-43962.9Jzs5X.rst [new file with mode: 0644]
Objects/interpreteridobject.c
Python/pystate.c