diff options
author | Neil Schemenauer <nas-github@arctrix.com> | 2024-01-26 19:38:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 19:38:14 -0800 |
commit | 7a7bce5a0ab249407e866a1e955d21fa2b0c8506 (patch) | |
tree | 9bd0e6f23d545a1cae7b88ca32e087689fe697ed /Include/internal/pycore_runtime_init.h | |
parent | 2d08af34b873d5e6b4df5082dfc30a37ef59c346 (diff) | |
download | cpython-7a7bce5a0ab249407e866a1e955d21fa2b0c8506.tar.gz cpython-7a7bce5a0ab249407e866a1e955d21fa2b0c8506.zip |
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>
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index b4806ab09fd..0a5c92bb84b 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -155,7 +155,6 @@ extern PyTypeObject _PyExc_MemoryError; { \ .id_refcount = -1, \ .imports = IMPORTS_INIT, \ - .obmalloc = _obmalloc_state_INIT(INTERP.obmalloc), \ .ceval = { \ .recursion_limit = Py_DEFAULT_RECURSION_LIMIT, \ }, \ |