bpo-36142: Add _PyMem_GetDebugAllocatorsName() (GH-12185)

The development mode now uses the effective name of the debug memory
allocator ("pymalloc_debug" or "malloc_debug"). So the name doesn't
change after setting the memory allocator.
This commit is contained in:
Victor Stinner 2019-03-05 23:31:54 +01:00 committed by GitHub
parent d8b3a98c90
commit a9df651eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 3 deletions

View file

@ -155,6 +155,8 @@ PyAPI_FUNC(int) _PyMem_SetDefaultAllocator(
PyMemAllocatorDomain domain,
PyMemAllocatorEx *old_alloc);
PyAPI_FUNC(const char*) _PyMem_GetDebugAllocatorsName(void);
#ifdef __cplusplus
}
#endif