Lines Matching refs:allocators
41 } allocators;
260 return allocators.raw.malloc(allocators.raw.ctx, size);
266 allocators.raw.free(allocators.raw.ctx, ptr);
875 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw);
994 alloc.ctx = &allocators.raw;
995 PyMem_GetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw);
1004 alloc.ctx = &allocators.mem;
1005 PyMem_GetAllocator(PYMEM_DOMAIN_MEM, &allocators.mem);
1008 alloc.ctx = &allocators.obj;
1009 PyMem_GetAllocator(PYMEM_DOMAIN_OBJ, &allocators.obj);
1028 /* unregister the hook on memory allocators */
1030 PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &allocators.raw);
1032 PyMem_SetAllocator(PYMEM_DOMAIN_MEM, &allocators.mem);
1033 PyMem_SetAllocator(PYMEM_DOMAIN_OBJ, &allocators.obj);