Lines Matching refs:malloc

6 #include <stdlib.h>               // malloc()
13 /* Python's malloc wrappers (see pymem.h) */
95 /* PyMem_RawMalloc(0) means malloc(1). Some systems would return NULL
96 for malloc(0), which would be treated as an error. Some platforms would
101 return malloc(size);
170 return malloc(size);
294 else if (strcmp(name, "malloc") == 0) {
387 return "malloc";
450 return (_PyObject.malloc == _PyMem_DebugMalloc);
457 return (_PyMem_Debug.obj.alloc.malloc == _PyObject_Malloc);
460 return (_PyObject.malloc == _PyObject_Malloc);
472 if (_PyMem_Raw.malloc == _PyMem_DebugRawMalloc) {
478 alloc.malloc = _PyMem_DebugRawMalloc;
485 if (_PyMem.malloc == _PyMem_DebugMalloc) {
491 alloc.malloc = _PyMem_DebugMalloc;
498 if (_PyObject.malloc == _PyMem_DebugMalloc) {
504 alloc.malloc = _PyMem_DebugMalloc;
532 allocator->malloc = NULL;
586 return _PyMem_Raw.malloc(_PyMem_Raw.ctx, size);
623 return _PyMem.malloc(_PyMem.ctx, size);
712 return _PyObject.malloc(_PyObject.ctx, size);
786 [ Underlying general-purpose allocator (ex: C library malloc) ]
801 on top of a general-purpose malloc -- heavily based on previous art. */
890 * Max size threshold below which malloc requests are considered to be
947 * current process (obtained through a malloc()/mmap() call). In no way this
948 * means that the memory arenas will be used entirely. A malloc(<Big>) is
950 * this space are referenced subsequently. So malloc'ing big blocks and not
1017 /* The address of the arena, as returned by malloc. Note that 0
1018 * will never be returned by a successful malloc, and is used
1084 This is a pool's initial state, as a pool is created only when malloc
1089 If all but one block is currently allocated, a malloc can cause a
1105 Empty pools have no inherent size class: the next time a malloc finds
1201 separately malloc'ed.
1269 /* Total number of times malloc() called to allocate an arena. */
1728 call to the system malloc() or realloc()). (POOL)->arenaindex may be anything
2380 /* pymalloc not enabled: Redirect the entry points to malloc. These will
2449 /* Let S = sizeof(size_t). The debug malloc asks for 4 * S extra bytes and
2450 fills them with useful stuff, here calling the underlying malloc's result p:
2474 If PYMEM_DEBUG_SERIALNO is not defined (default), the debug malloc only asks
2482 uint8_t *p; /* base address of malloc'ed pad block */
2508 p = (uint8_t *)api->alloc.malloc(api->alloc.ctx, total);
2568 uint8_t *q = (uint8_t *)p - 2*SST; /* address returned from malloc */
2587 uint8_t *head; /* base address of malloc'ed pad block */
2843 " The block was made by call #%zu to debug malloc/realloc.\n",
3068 (void)printone(out, "# times object malloc called", serialno);