Home
last modified time | relevance | path

Searched refs:PyMem_SetAllocator (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Python/
Dpathconfig.c43 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_Clear()
95 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_Init()
162 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath()
179 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPythonHome()
200 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetProgramName()
221 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetProgramFullPath()
Dpystate.c72 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
88 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
112 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
947 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyGILState_Reinit()
Dpylifecycle.c218 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
856 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_InitializeCore()
867 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_InitializeCore()
1993 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in init_sys_streams()
Dimport.c300 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
2343 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
Dsysmodule.c1682 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
1722 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
/external/python/cpython3/Objects/
Dobmalloc.c242 PyMem_SetAllocator(domain, &new_alloc); in pymem_set_default_allocator()
285 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &malloc_alloc); in _PyMem_SetupAllocators()
288 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &pymalloc); in _PyMem_SetupAllocators()
289 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &pymalloc); in _PyMem_SetupAllocators()
298 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &malloc_alloc); in _PyMem_SetupAllocators()
299 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &malloc_alloc); in _PyMem_SetupAllocators()
300 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &malloc_alloc); in _PyMem_SetupAllocators()
428 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in _PyMem_SetupDebugHooksDomain()
441 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &alloc); in _PyMem_SetupDebugHooksDomain()
454 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &alloc); in _PyMem_SetupDebugHooksDomain()
[all …]
/external/python/cpython3/Modules/
D_tracemalloc.c1105 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in tracemalloc_start()
1115 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &alloc); in tracemalloc_start()
1119 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &alloc); in tracemalloc_start()
1139 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_stop()
1141 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &allocators.mem); in tracemalloc_stop()
1142 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &allocators.obj); in tracemalloc_stop()
D_testcapimodule.c3437 PyMem_SetAllocator(domain, &alloc); in test_setallocators()
3543 PyMem_SetAllocator(domain, &hook.alloc); in test_setallocators()
3649 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in fm_setup_hooks()
3652 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &alloc); in fm_setup_hooks()
3655 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &alloc); in fm_setup_hooks()
3663 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_remove_hooks()
3664 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &FmHook.mem); in fm_remove_hooks()
3665 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &FmHook.obj); in fm_remove_hooks()
Dmain.c589 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_clear_cmdline()
618 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_clear_config()
663 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_free_raw()
2975 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_cmdline()
/external/python/cpython3/Include/
Dpymem.h211 PyAPI_FUNC(void) PyMem_SetAllocator(PyMemAllocatorDomain domain,
/external/python/cpython3/Doc/c-api/
Dmemory.rst423 .. c:function:: void PyMem_SetAllocator(PyMemAllocatorDomain domain, PyMemAllocatorEx *allocator)
Dinit.rst27 * :c:func:`PyMem_SetAllocator`