Home
last modified time | relevance | path

Searched refs:PyMem_RawMalloc (Results 1 – 25 of 48) sorted by relevance

12

/external/python/cpython3/Parser/
Dmyreadline.c183 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline()
207 buf = PyMem_RawMalloc(1); in _PyOS_WindowsConsoleReadline()
223 buf = PyMem_RawMalloc(u8len + 1); in _PyOS_WindowsConsoleReadline()
280 wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)); in PyOS_StdioReadline()
/external/armnn/python/pyarmnn/src/pyarmnn/swig/typemaps/
Dpermutation_vector.i11 $1 = (unsigned int*)PyMem_RawMalloc($2*sizeof(unsigned int));
Dtensor_shape.i11 $2 = (unsigned int*)PyMem_RawMalloc($1*sizeof(unsigned int));
/external/python/cpython3/Include/
Dpymem.h95 PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
/external/python/cpython3/Python/
Dobject_stack.c32 buf = PyMem_RawMalloc(sizeof(_PyObjectStackChunk)); in _PyObjectStackChunk_New()
Dthread.c187 Py_tss_t *new_key = (Py_tss_t *)PyMem_RawMalloc(sizeof(Py_tss_t)); in PyThread_tss_alloc()
Dcrossinterp_data_lookup.h180 struct _xidregitem *newhead = PyMem_RawMalloc(sizeof(struct _xidregitem)); in _xidregistry_add_type()
514 struct _shared_tuple_data *shared = PyMem_RawMalloc(sizeof(struct _shared_tuple_data)); in _tuple_shared()
Dfileutils.c345 result = PyMem_RawMalloc(len + 1); in encode_ascii()
419 res = PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_ascii()
485 res = (wchar_t *)PyMem_RawMalloc((argsize + 1) * sizeof(wchar_t)); in decode_current_locale()
511 res = (wchar_t*)PyMem_RawMalloc(argsize * sizeof(wchar_t)); in decode_current_locale()
745 result = PyMem_RawMalloc(size); in encode_current_locale()
2209 *abspath_p = PyMem_RawMalloc(len * sizeof(wchar_t)); in _Py_abspath()
2442 wchar_t *filename = PyMem_RawMalloc(bufsize * sizeof(wchar_t)); in _Py_join_relfile()
Dthread_pthread.h281 pythread_callback *callback = PyMem_RawMalloc(sizeof(pythread_callback)); in do_start_joinable_thread()
437 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock()
Dcrossinterp.c77 _PyCrossInterpreterData *xid = PyMem_RawMalloc( in _PyCrossInterpreterData_New()
158 data->data = PyMem_RawMalloc(size); in _PyCrossInterpreterData_InitWithSize()
354 char *copied = PyMem_RawMalloc(size+1); in _copy_string_obj_raw()
1149 item->data = PyMem_RawMalloc(sizeof(_PyCrossInterpreterData)); in _sharednsitem_set_value()
Dthread_nt.h39 PNRMUTEX m = (PNRMUTEX)PyMem_RawMalloc(sizeof(NRMUTEX)); in AllocNonRecursiveMutex()
Dperf_trampoline.c219 char* perf_map_entry = (char*) PyMem_RawMalloc(perf_map_entry_size); in perf_map_write_entry()
Dpathconfig.c179 wchar_t *path = (wchar_t*)PyMem_RawMalloc(sizeof(wchar_t) * cch); in _PyPathConfig_UpdateGlobal()
Dperf_jit_trampoline.c520 char* perf_map_entry = (char*) PyMem_RawMalloc(perf_map_entry_size); in perf_map_jit_write_entry()
Dpreconfig.c84 wargv.items = (wchar_t **)PyMem_RawMalloc(size); in _PyArgv_AsWstrList()
Dimport.c983 = PyMem_RawMalloc(sizeof(struct extensions_cache_value)); in alloc_extensions_cache_value()
1171 char *key = PyMem_RawMalloc(size); in hashtable_key_from_2_strings()
1242 _Py_hashtable_allocator_t alloc = {PyMem_RawMalloc, PyMem_RawFree}; in _extensions_cache_init()
2444 struct _inittab *copied = PyMem_RawMalloc(size * sizeof(struct _inittab)); in init_builtin_modules_table()
/external/python/cpython3/Doc/c-api/
Dmemory.rst131 :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`, but not :c:func:`PyObject_Malloc`.
152 .. c:function:: void* PyMem_RawMalloc(size_t n)
158 if ``PyMem_RawMalloc(1)`` had been called instead. The memory will not have
180 If *p* is ``NULL``, the call is equivalent to ``PyMem_RawMalloc(n)``; else if
185 :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
195 previous call to :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawRealloc` or
390 Configuration Name PyMem_RawMalloc PyMem_Malloc P…
452 * :c:func:`PyMem_RawMalloc`
642 platforms. It falls back to :c:func:`PyMem_RawMalloc` and
Dveryhigh.rst162 The result must be a string allocated by :c:func:`PyMem_RawMalloc` or
166 The result must be allocated by :c:func:`PyMem_RawMalloc` or
/external/python/cpython3/Modules/_testcapi/
Dmem.c204 ptr = PyMem_RawMalloc(size); in test_setallocators()
392 ptr = PyMem_RawMalloc(0); in test_pymem_alloc0()
/external/python/cpython3/Modules/
Dreadline.c1473 p = PyMem_RawMalloc(1); in call_readline()
1501 p = PyMem_RawMalloc(n+2); in call_readline()
Dgetpath.c754 buffer = (wchar_t*)PyMem_RawMalloc(cch * sizeof(wchar_t)); in winmodule_to_dict()
779 path = PyMem_RawMalloc((pathLen + 1) * sizeof(char)); in progname_to_dict()
D_bz2module.c316 return PyMem_RawMalloc((size_t)items * (size_t)size); in BZ2_Malloc()
D_interpqueuesmodule.c24 PyMem_RawMalloc(sizeof(TYPE))
1316 struct _queueid_xid *data = PyMem_RawMalloc(sizeof(struct _queueid_xid)); in _queueid_xid_new()
/external/python/cpython3/Modules/_xxtestfuzz/
Dfuzzer.c293 compiled_patterns = (PyObject**) PyMem_RawMalloc( in init_sre_match()
/external/python/cpython3/Objects/
Dobmalloc.c938 PyMem_RawMalloc(size_t size) in PyMem_RawMalloc() function
1037 wchar_t *str2 = PyMem_RawMalloc(size); in _PyMem_RawWcsdup()
1051 char *copy = PyMem_RawMalloc(size); in _PyMem_RawStrdup()
2140 ptr = PyMem_RawMalloc(nbytes); in _PyObject_Malloc()

12