Browse Source
bpo-36142: Add _PyPreConfig_SetAllocator() (GH-12187)
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".pull/12188/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 50 additions and 88 deletions
-
2Include/internal/pycore_coreconfig.h
-
2Include/internal/pycore_pymem.h
-
5Lib/test/test_embed.py
-
25Modules/main.c
-
14Objects/obmalloc.c
-
61Python/preconfig.c
-
29Python/pylifecycle.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue