Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/_testcapi/
Dmem.c138 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in fm_setup_hooks()
141 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &alloc); in fm_setup_hooks()
144 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &alloc); in fm_setup_hooks()
152 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_remove_hooks()
153 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &FmHook.mem); in fm_remove_hooks()
154 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &FmHook.obj); in fm_remove_hooks()
196 PyMem_SetAllocator(domain, &alloc); in test_setallocators()
333 PyMem_SetAllocator(domain, &hook.alloc); in test_setallocators()
/external/python/cpython3/Python/
Dpathconfig.c78 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_ClearGlobal()
197 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_UpdateGlobal()
201 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_UpdateGlobal()
242 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath()
269 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPythonHome()
292 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetProgramName()
Dtracemalloc.c937 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in _PyTraceMalloc_Start()
947 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &alloc); in _PyTraceMalloc_Start()
951 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &alloc); in _PyTraceMalloc_Start()
971 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in _PyTraceMalloc_Stop()
973 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &allocators.mem); in _PyTraceMalloc_Stop()
974 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &allocators.obj); in _PyTraceMalloc_Stop()
Dimport.c2409 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
4004 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Init()
4023 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini()
4040 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
Dsysmodule.c2718 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2758 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
Dinitconfig.c652 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
669 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
/external/python/cpython3/Include/cpython/
Dpymem.h65 PyAPI_FUNC(void) PyMem_SetAllocator(PyMemAllocatorDomain domain,
/external/python/cpython3/Programs/
D_testembed.c2174 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &wrapper); in wrap_allocator()
2180 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, allocator); in unwrap_allocator()
/external/python/cpython3/Doc/c-api/
Dmemory.rst480 .. c:function:: void PyMem_SetAllocator(PyMemAllocatorDomain domain, PyMemAllocatorEx *allocator)
504 :c:func:`PyMem_SetAllocator` does have the following contract:
543 after calling :c:func:`PyMem_SetAllocator`.
Dinit_config.rst411 ``PyMem_SetAllocator()`` can be called after :c:func:`Py_PreInitialize` and
Dinit.rst39 * :c:func:`PyMem_SetAllocator`
/external/python/cpython3/Objects/
Dobmalloc.c878 PyMem_SetAllocator(PyMemAllocatorDomain domain, PyMemAllocatorEx *allocator) in PyMem_SetAllocator() function
/external/python/cpython3/Doc/whatsnew/
D3.12.rst2126 * Custom allocators, set via :c:func:`PyMem_SetAllocator`, are now
/external/python/cpython3/Doc/data/
Dpython3.13.abi457 …<elf-symbol name='PyMem_SetAllocator' type='func-type' binding='global-binding' visibility='defaul…
9379PyMem_SetAllocator' mangled-name='PyMem_SetAllocator' filepath='Objects/obmalloc.c' line='878' col…