]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36142: Add _PyPreConfig_SetAllocator() (GH-12187)
authorVictor Stinner <vstinner@redhat.com>
Wed, 6 Mar 2019 00:13:43 +0000 (01:13 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2019 00:13:43 +0000 (01:13 +0100)
commitc656e25667c9acc0d13e5bb16d3df2938d0f614b
tree61e424b53e6f0b1f5a2d7637fedf47ab5e91962e
parent7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c
bpo-36142: Add _PyPreConfig_SetAllocator() (GH-12187)

* _PyPreConfig_Write() now reallocates the pre-configuration with the
  new memory allocator.
* It is no longer needed to force the "default raw memory allocator"
  to clear pre-configuration and core configuration. Simplify the
  code.
* _PyPreConfig_Write() now does nothing if called after
  Py_Initialize(): no longer check if the allocator is the same.
* Remove _PyMem_GetDebugAllocatorsName(): dev mode sets again
  allocator to "debug".
Include/internal/pycore_coreconfig.h
Include/internal/pycore_pymem.h
Lib/test/test_embed.py
Modules/main.c
Objects/obmalloc.c
Python/preconfig.c
Python/pylifecycle.c