summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-28 11:40:44 (GMT)
committerGitHub <noreply@github.com>2021-04-28 11:40:44 (GMT)
commit32c5a174445ec93747240cd8472012276ed27acf (patch)
tree4543061a1faff9636786507ef6edc69bc1a66692 /Misc
parent21b02b5f4018474620676be04310f7d230a464ea (diff)
downloadcpython-32c5a174445ec93747240cd8472012276ed27acf.zip
cpython-32c5a174445ec93747240cd8472012276ed27acf.tar.gz
cpython-32c5a174445ec93747240cd8472012276ed27acf.tar.bz2
bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683)
_PyInterpreterState_IDIncref() now calls _PyInterpreterState_IDInitref() and always increments id_refcount.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2021-04-28-13-13-07.bpo-43962.9Jzs5X.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-04-28-13-13-07.bpo-43962.9Jzs5X.rst b/Misc/NEWS.d/next/C API/2021-04-28-13-13-07.bpo-43962.9Jzs5X.rst
new file mode 100644
index 0000000..3216416
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-04-28-13-13-07.bpo-43962.9Jzs5X.rst
@@ -0,0 +1,5 @@
+_PyInterpreterState_IDIncref() now calls _PyInterpreterState_IDInitref() and
+always increments id_refcount. Previously, calling
+_xxsubinterpreters.get_current() could create an id_refcount inconsistency
+when a _xxsubinterpreters.InterpreterID object was deallocated. Patch by
+Victor Stinner.