Home
last modified time | relevance | path

Searched refs:PyMem_RawCalloc (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Include/cpython/
H A Dpymem.h6 PyAPI_FUNC(void *) PyMem_RawCalloc(size_t nelem, size_t elsize);
/third_party/python/Objects/
H A Dobmalloc.c107 /* PyMem_RawCalloc(0, 0) means calloc(1, 1). Some systems would return NULL in _PyMem_RawCalloc()
590 PyMem_RawCalloc(size_t nelem, size_t elsize) in PyMem_RawCalloc() function
1459 arena_map_mid_t *n = PyMem_RawCalloc(1, sizeof(arena_map_mid_t)); in arena_map_get()
1471 arena_map_bot_t *n = PyMem_RawCalloc(1, sizeof(arena_map_bot_t)); in arena_map_get()
2023 ptr = PyMem_RawCalloc(nelem, elsize); in _PyObject_Calloc()
/third_party/python/Python/
H A Dthread_pthread.h582 lock = (pthread_lock *) PyMem_RawCalloc(1, sizeof(pthread_lock)); in PyThread_allocate_lock()
H A Dpystate.c254 return PyMem_RawCalloc(1, sizeof(PyInterpreterState)); in alloc_interpreter()
268 e.g. by PyMem_RawCalloc() or memset(), or otherwise pre-initialized.
744 return PyMem_RawCalloc(1, sizeof(PyThreadState)); in alloc_threadstate()
758 e.g. by PyMem_RawCalloc() or memset(), or otherwise pre-initialized.
H A Dsysmodule.c2136 _Py_PreInitEntry node = PyMem_RawCalloc(1, sizeof(*node)); in _alloc_preinit_entry()
H A Dcompile.c8218 int *sorted = PyMem_RawCalloc(nvars, sizeof(int)); in insert_prefix_instructions()
/third_party/python/Modules/
H A D_winapi.c615 rdb = (_Py_PREPARSE_DATA_BUFFER)PyMem_RawCalloc(1, rdb_size); in _winapi_CreateJunction_impl()
H A D_testcapimodule.c4098 ptr = PyMem_RawCalloc(0, 0); in test_pymem_alloc0()
4100 PyErr_SetString(PyExc_RuntimeError, "PyMem_RawCalloc(0, 0) returns NULL"); in test_pymem_alloc0()
4268 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators()

Completed in 40 milliseconds