Home
last modified time | relevance | path

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

12

/aosp_15_r20/external/python/cpython2/Doc/c-api/
Dmemory.rst172 .. c:function:: void* PyObject_Malloc(size_t n)
178 if ``PyObject_Malloc(1)`` had been called instead. The memory will not have
187 If *p* is *NULL*, the call is equivalent to ``PyObject_Malloc(n)``; else if *n*
192 :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:func:`PyObject_Calloc`.
201 previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or
210 * :c:func:`PyObject_MALLOC`: alias to :c:func:`PyObject_Malloc`
228 *pymalloc* is the default allocator of :c:func:`PyObject_Malloc`.
/aosp_15_r20/external/python/cpython2/Include/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t);
119 #define PyObject_Malloc _PyObject_DebugMalloc macro
126 #define PyObject_MALLOC PyObject_Malloc
/aosp_15_r20/external/python/cpython3/Include/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
108 #define PyObject_MALLOC PyObject_Malloc
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/include/python3.11/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
108 #define PyObject_MALLOC PyObject_Malloc
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/include/python3.11/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
108 #define PyObject_MALLOC PyObject_Malloc
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/include/python3.11/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
108 #define PyObject_MALLOC PyObject_Malloc
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/include/python3.11/
Dobjimpl.h97 PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
108 #define PyObject_MALLOC PyObject_Malloc
/aosp_15_r20/external/python/cpython2/Objects/
Dobmalloc.c788 #undef PyObject_Malloc
790 PyObject_Malloc(size_t nbytes) in PyObject_Malloc() function
1235 return PyObject_Malloc(nbytes); in PyObject_Realloc()
1272 bp = PyObject_Malloc(nbytes); in PyObject_Realloc()
1311 PyObject_Malloc(size_t n) in PyObject_Malloc() function
1494 p = (uchar *)PyObject_Malloc(total); in _PyObject_DebugMallocApi()
/aosp_15_r20/external/python/cpython3/Doc/c-api/
Dmemory.rst110 by :c:func:`PyObject_Malloc` for allocating memory for buffers.
323 .. c:function:: void* PyObject_Malloc(size_t n)
329 if ``PyObject_Malloc(1)`` had been called instead. The memory will not have
351 If *p* is ``NULL``, the call is equivalent to ``PyObject_Malloc(n)``; else if *n*
356 :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:func:`PyObject_Calloc`.
365 previous call to :c:func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or
380 … Name PyMem_RawMalloc PyMem_Malloc PyObject_Malloc
456 * :c:func:`PyObject_Malloc`
540 :c:func:`PyObject_Malloc`) and :c:data:`PYMEM_DOMAIN_MEM` (ex:
626 :c:data:`PYMEM_DOMAIN_OBJ` (ex: :c:func:`PyObject_Malloc`) domains.
/aosp_15_r20/external/python/cpython2/Misc/
Dpymemcompat.h49 #define PyObject_Malloc PyMem_Malloc macro
/aosp_15_r20/external/python/cpython3/Python/
Dfuture.c123 ff = (PyFutureFeatures *)PyObject_Malloc(sizeof(PyFutureFeatures)); in _PyFuture_FromAST()
/aosp_15_r20/external/python/cpython2/Python/
Dfuture.c124 ff = (PyFutureFeatures *)PyObject_Malloc(sizeof(PyFutureFeatures)); in PyFuture_FromAST()
Dcompile.c469 u = (struct compiler_unit *)PyObject_Malloc(sizeof( in compiler_enter_scope()
572 b = (basicblock *)PyObject_Malloc(sizeof(basicblock)); in compiler_new_block()
624 b->b_instr = (struct instr *)PyObject_Malloc( in compiler_next_instr()
3505 a->a_postorder = (basicblock **)PyObject_Malloc( in assemble_init()
/aosp_15_r20/external/python/cpython3/Objects/
Dbytearrayobject.c134 new->ob_bytes = PyObject_Malloc(alloc); in PyByteArray_FromStringAndSize()
223 sval = PyObject_Malloc(alloc); in PyByteArray_Resize()
956 buffer = PyObject_Malloc(newsize); in bytearray_repr()
Dbytesobject.c103 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in _PyBytes_FromSize()
170 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size); in PyBytes_FromString()
1472 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + nbytes); in bytes_repeat()
Dobject.c176 PyObject *op = (PyObject *) PyObject_Malloc(_PyObject_SIZE(tp)); in _PyObject_New()
189 op = (PyVarObject *) PyObject_Malloc(size); in _PyObject_NewVar()
Dcomplexobject.c231 PyComplexObject *op = PyObject_Malloc(sizeof(PyComplexObject)); in PyComplex_FromCComplex()
Dunicodeobject.c1247 _PyUnicode_WSTR(unicode) = (Py_UNICODE*) PyObject_Malloc(new_size); in _PyUnicode_New()
1425 obj = (PyObject *) PyObject_Malloc(struct_size + (size + 1) * char_size); in PyUnicode_New()
1807 _PyUnicode_DATA_ANY(unicode) = PyObject_Malloc(_PyUnicode_WSTR_LENGTH(unicode) + 1); in _PyUnicode_Ready()
1848 _PyUnicode_DATA_ANY(unicode) = PyObject_Malloc( in _PyUnicode_Ready()
1877 _PyUnicode_DATA_ANY(unicode) = PyObject_Malloc(4 * (length_wo_surrogates + 1)); in _PyUnicode_Ready()
4216 w = (wchar_t *) PyObject_Malloc(sizeof(wchar_t) * (wlen + 1)); in PyUnicode_AsUnicodeAndSize()
5618 char *cache = PyObject_Malloc(len + 1); in unicode_fill_utf8()
8479 result = PyObject_Malloc(sizeof(struct encoding_map) + in PyUnicode_BuildEncodingMap()
15365 data = PyObject_Malloc((length + 1) * char_size); in unicode_subtype_new()
/aosp_15_r20/external/python/cpython2/Modules/
D_elementtree.c274 self->extra = PyObject_Malloc(sizeof(ElementObjectExtra)); in element_new_extra()
389 children = PyObject_Malloc(size * sizeof(PyObject*)); in element_resize()
2565 memory_handler.malloc_fcn = PyObject_Malloc;
/aosp_15_r20/external/python/cpython3/Modules/
D_elementtree.c218 self->extra = PyObject_Malloc(sizeof(ElementObjectExtra)); in create_extra()
470 children = PyObject_Malloc(size * sizeof(PyObject*)); in element_resize()
3043 PyObject_Malloc, PyObject_Realloc, PyObject_Free};
Dmathmodule.c2709 diffs = (double *) PyObject_Malloc(n * sizeof(double)); in math_dist_impl()
2765 coordinates = (double *) PyObject_Malloc(nargs * sizeof(double)); in math_hypot()
D_testcapimodule.c4119 ptr = PyObject_Malloc(0); in test_pymem_alloc0()
4209 case PYMEM_DOMAIN_OBJ: ptr = PyObject_Malloc(size); break; in test_setallocators()
5053 PyObject *op = (PyObject *)PyObject_Malloc(sizeof(PyObject)); in check_pyobject_uninitialized_is_freed()
5068 PyObject *op = (PyObject *)PyObject_Malloc(offsetof(PyObject, ob_type)); in check_pyobject_forbidden_bytes_is_freed()
5108 buffer = PyObject_Malloc(10); in pyobject_malloc_without_gil()
/aosp_15_r20/external/python/cpython2/PC/os2emx/
Dpython27.def497 "PyObject_Malloc"
/aosp_15_r20/external/python/cpython3/PC/
Dpython3dll.c475 EXPORT_FUNC(PyObject_Malloc)
/aosp_15_r20/external/python/cpython3/Doc/data/
Dstable_abi.dat526 function,PyObject_Malloc,3.2,,

12