]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)...
authorVictor Stinner <vstinner@python.org>
Thu, 6 Jan 2022 15:12:28 +0000 (16:12 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Jan 2022 15:12:28 +0000 (16:12 +0100)
commit72c260cf0c71eb01eb13100b751e9d5007d00b70
tree7aa9f23f175630b1b53ef57ae3a7896d886fa8b4
parent861a9aaf0f517623c58ca4eb5588804b2632fcba
[3.10] bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422) (GH-30425)

This reverts commit ea251806b8dffff11b30d2182af1e589caf88acf.

Keep "assert(interned == NULL);" in _PyUnicode_Fini(), but only for
the main interpreter.

Keep _PyUnicode_ClearInterned() changes avoiding the creation of a
temporary Python list object.

Leave the PyInterpreterState structure unchanged to keep the ABI
backward compatibility with Python 3.10.0: rename the "interned"
member to "unused_interned".

(cherry picked from commit 35d6540c904ef07b8602ff014e520603f84b5886)
Include/internal/pycore_interp.h
Misc/NEWS.d/next/Core and Builtins/2022-01-05-17-13-47.bpo-46006.hdH5Vn.rst [new file with mode: 0644]
Objects/typeobject.c
Objects/unicodeobject.c