]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113055: Use pointer for interp->obmalloc state (gh-113412)
authorNeil Schemenauer <nas-github@arctrix.com>
Sat, 27 Jan 2024 03:38:14 +0000 (19:38 -0800)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 03:38:14 +0000 (19:38 -0800)
commit7a7bce5a0ab249407e866a1e955d21fa2b0c8506
tree9bd0e6f23d545a1cae7b88ca32e087689fe697ed
parent2d08af34b873d5e6b4df5082dfc30a37ef59c346
gh-113055: Use pointer for interp->obmalloc state (gh-113412)

For interpreters that share state with the main interpreter, this points
to the same static memory structure.  For interpreters with their own
obmalloc state, it is heap allocated.  Add free_obmalloc_arenas() which
will free the obmalloc arenas and radix tree structures for interpreters
with their own obmalloc state.

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Include/internal/pycore_interp.h
Include/internal/pycore_obmalloc.h
Include/internal/pycore_obmalloc_init.h
Include/internal/pycore_runtime_init.h
Misc/NEWS.d/next/Core and Builtins/2023-12-22-13-21-39.gh-issue-113055.47xBMF.rst [new file with mode: 0644]
Objects/obmalloc.c
Python/pylifecycle.c
Python/pystate.c
Tools/c-analyzer/cpython/ignored.tsv