Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dpathconfig.c46 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_clear()
66 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_clear()
104 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_ClearGlobal()
108 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_ClearGlobal()
148 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_set_from_config()
185 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_set_from_config()
266 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_calculate()
286 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_calculate()
458 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath()
473 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath()
[all …]
Dpystate.c97 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
101 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
110 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
122 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
139 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_ReInitThreads()
145 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_ReInitThreads()
182 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
186 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
Dinitconfig.c456 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
491 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
502 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearStandardStreamEncoding()
514 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearStandardStreamEncoding()
528 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
532 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
543 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
547 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
Dimport.c297 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
303 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
2462 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
2484 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
Dsysmodule.c2050 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2061 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2094 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
2101 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.c867 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_init()
994 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_start()
995 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in tracemalloc_start()
1029 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_stop()
D_testcapimodule.c3865 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawMalloc(size); break; in test_setallocators()
3891 case PYMEM_DOMAIN_RAW: ptr2 = PyMem_RawRealloc(ptr, size2); break; in test_setallocators()
3910 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr2); break; in test_setallocators()
3926 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators()
3945 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr); break; in test_setallocators()
3973 return test_setallocators(PYMEM_DOMAIN_RAW); in test_pymem_setrawallocators()
4065 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_setup_hooks()
4070 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in fm_setup_hooks()
4084 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_remove_hooks()
/external/python/cpython3/Doc/c-api/
Dmemory.rst391 .. c:macro:: PYMEM_DOMAIN_RAW
430 For the :c:data:`PYMEM_DOMAIN_RAW` domain, the allocator must be
/external/python/cpython3/Doc/using/
Dcmdline.rst779 for all domains (:c:data:`PYMEM_DOMAIN_RAW`, :c:data:`PYMEM_DOMAIN_MEM`,
783 the :c:func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain.