diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-17 15:20:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-17 15:20:52 +0200 |
commit | b16b4e45923f4e4dfd8e970ae4e6a934faf73b79 (patch) | |
tree | fb7b3abc251f148386efdad7a5cde5d13d157d38 /Programs | |
parent | Simplify SSLSocket / SSLObject doc string (GH-9972) (diff) | |
download | cpython-b16b4e45923f4e4dfd8e970ae4e6a934faf73b79.tar.gz cpython-b16b4e45923f4e4dfd8e970ae4e6a934faf73b79.tar.bz2 cpython-b16b4e45923f4e4dfd8e970ae4e6a934faf73b79.zip |
bpo-36763: Add PyMemAllocatorName (GH-13387)
* Add PyMemAllocatorName enum
* _PyPreConfig.allocator type becomes PyMemAllocatorName, instead of
char*
* Remove _PyPreConfig_Clear()
* Add _PyMem_GetAllocatorName()
* Rename _PyMem_GetAllocatorsName() to
_PyMem_GetCurrentAllocatorName()
* Remove _PyPreConfig_SetAllocator(): just call
_PyMem_SetupAllocators() directly, we don't have do reallocate the
configuration with the new allocator anymore!
* _PyPreConfig_Write() parameter becomes const, as it should be in
the first place!
Diffstat (limited to 'Programs')
-rw-r--r-- | Programs/_testembed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index b1b7c6e0ffc..3327c8ce663 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -379,7 +379,7 @@ static int test_init_from_config(void) _PyPreConfig preconfig = _PyPreConfig_INIT; putenv("PYTHONMALLOC=malloc_debug"); - preconfig.allocator = "malloc"; + preconfig.allocator = PYMEM_ALLOCATOR_MALLOC; putenv("PYTHONUTF8=0"); Py_UTF8Mode = 0; |