Home
last modified time | relevance | path

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

/third_party/python/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()
341 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_init()
358 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pathconfig_init()
485 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath()
495 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath()
[all …]
Dpystate.c107 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
111 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init()
120 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
132 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini()
147 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_ReInitThreads()
153 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_ReInitThreads()
192 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
196 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable()
Dinitconfig.c471 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
506 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding()
517 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearStandardStreamEncoding()
529 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearStandardStreamEncoding()
543 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
547 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_ClearArgcArgv()
558 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
562 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_SetArgcArgv()
Dimport.c256 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
265 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2()
2256 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
2278 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
Dsysmodule.c2125 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2136 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry()
2169 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
2176 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
/third_party/python/Include/cpython/
Dpymem.h25 PYMEM_DOMAIN_RAW, enumerator
/third_party/python/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 …]
/third_party/python/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.c4032 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawMalloc(size); break; in test_setallocators()
4058 case PYMEM_DOMAIN_RAW: ptr2 = PyMem_RawRealloc(ptr, size2); break; in test_setallocators()
4077 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr2); break; in test_setallocators()
4093 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators()
4112 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr); break; in test_setallocators()
4140 return test_setallocators(PYMEM_DOMAIN_RAW); in test_pymem_setrawallocators()
4232 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_setup_hooks()
4237 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in fm_setup_hooks()
4251 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_remove_hooks()
/third_party/python/Doc/c-api/
Dmemory.rst432 .. c:macro:: PYMEM_DOMAIN_RAW
471 For the :c:data:`PYMEM_DOMAIN_RAW` domain, the allocator must be
537 * ``'r'`` for :c:data:`PYMEM_DOMAIN_RAW`.
/third_party/python/Doc/using/
Dcmdline.rst796 for all domains (:c:data:`PYMEM_DOMAIN_RAW`, :c:data:`PYMEM_DOMAIN_MEM`,
800 the :c:func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain.