]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45522: Allow to disable freelists on build time (GH-29056)
authorChristian Heimes <christian@python.org>
Thu, 21 Oct 2021 13:12:20 +0000 (16:12 +0300)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 13:12:20 +0000 (06:12 -0700)
commit9942f42a93ccda047fd3558c47b822e99afe10c0
tree5a28ecf799a90b9225530c12acd7c38c1935f156
parent5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c
bpo-45522: Allow to disable freelists on build time (GH-29056)

Freelists for object structs can now be disabled. A new ``configure``
option ``--without-freelists`` can be used to disable all freelists
except empty tuple singleton. Internal Py*_MAXFREELIST macros can now
be defined as 0 without causing compiler warnings and segfaults.

Signed-off-by: Christian Heimes <christian@python.org>
15 files changed:
Doc/whatsnew/3.11.rst
Include/internal/pycore_interp.h
Lib/test/test_sys.py
Misc/NEWS.d/next/C API/2021-10-19-13-07-46.bpo-45522.kGAwmZ.rst [new file with mode: 0644]
Objects/dictobject.c
Objects/floatobject.c
Objects/frameobject.c
Objects/genobject.c
Objects/listobject.c
Objects/tupleobject.c
PC/pyconfig.h
Python/context.c
configure
configure.ac
pyconfig.h.in