/external/python/cpython3/Python/ |
D | pathconfig.c | 23 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_Clear() 43 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_Clear() 61 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_Init() 95 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyPathConfig_Init() 141 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath() 162 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPath() 174 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPythonHome() 179 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetPythonHome() 195 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetProgramName() 200 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetProgramName() [all …]
|
D | pystate.c | 68 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init() 72 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Init() 81 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini() 88 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyRuntimeState_Fini() 108 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable() 112 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyInterpreterState_Enable() 943 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyGILState_Reinit() 947 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyGILState_Reinit()
|
D | pylifecycle.c | 184 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding() 218 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in Py_SetStandardStreamEncoding() 849 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_InitializeCore() 856 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_InitializeCore() 865 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_InitializeCore() 867 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _Py_InitializeCore() 1981 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in init_sys_streams() 1993 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in init_sys_streams()
|
D | import.c | 295 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2() 300 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _PyImport_Fini2() 2321 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab() 2343 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in PyImport_ExtendInittab()
|
D | sysmodule.c | 1671 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry() 1682 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _alloc_preinit_entry() 1715 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries() 1722 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in _clear_preinit_entries()
|
/external/python/cpython3/Objects/ |
D | obmalloc.c | 229 case PYMEM_DOMAIN_RAW: in pymem_set_default_allocator() 273 (void)_PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, NULL); in _PyMem_SetupAllocators() 278 (void)pymem_set_default_allocator(PYMEM_DOMAIN_RAW, 1, NULL); in _PyMem_SetupAllocators() 285 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &malloc_alloc); in _PyMem_SetupAllocators() 298 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &malloc_alloc); in _PyMem_SetupAllocators() 417 if (domain == PYMEM_DOMAIN_RAW) { in _PyMem_SetupDebugHooksDomain() 422 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &_PyMem_Debug.raw.alloc); in _PyMem_SetupDebugHooksDomain() 428 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in _PyMem_SetupDebugHooksDomain() 462 _PyMem_SetupDebugHooksDomain(PYMEM_DOMAIN_RAW); in PyMem_SetupDebugHooks() 472 case PYMEM_DOMAIN_RAW: *allocator = _PyMem_Raw; break; in PyMem_GetAllocator() [all …]
|
/external/python/cpython3/Modules/ |
D | main.c | 574 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_clear_cmdline() 589 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_clear_cmdline() 614 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_clear_config() 618 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_clear_config() 655 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_free_raw() 663 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_free_raw() 2947 _PyMem_SetDefaultAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_cmdline() 2950 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &default_alloc); in pymain_cmdline() 2972 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &cur_alloc); in pymain_cmdline() 2975 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc); in pymain_cmdline()
|
D | _tracemalloc.c | 968 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_init() 1104 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_start() 1105 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in tracemalloc_start() 1139 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw); in tracemalloc_stop()
|
D | _testcapimodule.c | 3444 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawMalloc(size); break; in test_setallocators() 3470 case PYMEM_DOMAIN_RAW: ptr2 = PyMem_RawRealloc(ptr, size2); break; in test_setallocators() 3489 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr2); break; in test_setallocators() 3505 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators() 3524 case PYMEM_DOMAIN_RAW: PyMem_RawFree(ptr); break; in test_setallocators() 3552 return test_setallocators(PYMEM_DOMAIN_RAW); in test_pymem_setrawallocators() 3644 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_setup_hooks() 3649 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &alloc); in fm_setup_hooks() 3663 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &FmHook.raw); in fm_remove_hooks()
|
/external/python/cpython3/Include/ |
D | pymem.h | 170 PYMEM_DOMAIN_RAW, enumerator
|
/external/python/cpython3/Doc/c-api/ |
D | memory.rst | 391 .. c:var:: PYMEM_DOMAIN_RAW 430 For the :c:data:`PYMEM_DOMAIN_RAW` domain, the allocator must be
|
/external/python/cpython3/Doc/using/ |
D | cmdline.rst | 725 for all domains (:c:data:`PYMEM_DOMAIN_RAW`, :c:data:`PYMEM_DOMAIN_MEM`, 729 the :c:func:`malloc` function for the :c:data:`PYMEM_DOMAIN_RAW` domain.
|