Home
last modified time | relevance | path

Searched refs:PYMEM_DOMAIN_RAW (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Python/
Dpathconfig.c47 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_clear()
67 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_clear()
105 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_ClearGlobal()
113 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_ClearGlobal()
159 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_InitDLLPath()
163 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_InitDLLPath()
178 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_set_from_config()
215 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_set_from_config()
304 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_calculate()
324 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_calculate()
[all …]
Dpystate.c96 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
100 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
109 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
121 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
137 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_ReInitThreads()
143 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_ReInitThreads()
179 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
183 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
Dinitconfig.c419 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
454 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
465 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearStandardStreamEncoding()
477 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearStandardStreamEncoding()
491 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
495 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
506 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
510 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
Dimport.c299 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
304 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
2385 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
2407 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
Dsysmodule.c2018 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2029 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2062 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
2069 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
/external/python/cpython3/Objects/
Dobmalloc.c236 case PYMEM_DOMAIN_RAW: in pymem_set_default_allocator()
315 (void)_PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, NULL); in _PyMem_SetupAllocators()
321 (void)pymem_set_default_allocator(PYMEM_DOMAIN_RAW, 1, NULL); in _PyMem_SetupAllocators()
331 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &malloc_alloc); in _PyMem_SetupAllocators()
348 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &malloc_alloc); in _PyMem_SetupAllocators()
469 if (domain == PYMEM_DOMAIN_RAW) { in _PyMem_SetupDebugHooksDomain()
474 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &_PyMem_Debug.raw.alloc); in _PyMem_SetupDebugHooksDomain()
480 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in _PyMem_SetupDebugHooksDomain()
514 _PyMem_SetupDebugHooksDomain(PYMEM_DOMAIN_RAW); in PyMem_SetupDebugHooks()
524 case PYMEM_DOMAIN_RAW: *allocator = _PyMem_Raw; break; in PyMem_GetAllocator()
[all …]
/external/python/cpython3/Include/cpython/
Dpymem.h31 PYMEM_DOMAIN_RAW, enumerator
/external/python/cpython3/Modules/
D_tracemalloc.c948 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_init()
1084 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_start()
1085 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in tracemalloc_start()
1119 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_stop()
D_testcapimodule.c3726 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawMalloc(size); break; in test_setallocators()
3752 case PYMEM_DOMAIN_RAW: ptr2 = PyMem_RawRealloc(ptr, size2); break; in test_setallocators()
3771 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr2); break; in test_setallocators()
3787 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators()
3806 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr); break; in test_setallocators()
3834 return test_setallocators(PYMEM_DOMAIN_RAW); in test_pymem_setrawallocators()
3926 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_setup_hooks()
3931 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in fm_setup_hooks()
3945 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_remove_hooks()
/external/python/cpython3/Doc/c-api/
Dmemory.rst391 .. c:var:: PYMEM_DOMAIN_RAW
430 For the :c:data:`PYMEM_DOMAIN_RAW` domain, the allocator must be
/external/python/cpython3/Doc/using/
Dcmdline.rst766 for all domains (:c:data:`PYMEM_DOMAIN_RAW`, :c:data:`PYMEM_DOMAIN_MEM`,
770 the :c:func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain.