Home
last modified time | relevance | path

Searched refs:numfree (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Include/internal/
Dpycore_interp.h86 int numfree; member
106 int numfree[PyTuple_MAXSAVESIZE]; member
117 int numfree; member
127 int numfree; member
135 int numfree; member
157 int numfree; member
/third_party/python/Objects/
Dtupleobject.c45 _PyDebugAllocatorStats(out, buf, state->numfree[i], in _PyTuple_DebugMallocStats()
77 assert(state->numfree[0] != -1); in tuple_alloc()
82 state->numfree[size]--; in tuple_alloc()
119 state->numfree[0]++; in tuple_create_empty_tuple_singleton()
121 assert(state->numfree[0] == 1); in tuple_create_empty_tuple_singleton()
137 assert(state->numfree[0] != -1); in tuple_get_empty()
282 assert(state->numfree[0] != -1); in tupledealloc()
285 && state->numfree[len] < PyTuple_MAXFREELIST in tupledealloc()
289 state->numfree[len]++; in tupledealloc()
1018 state->numfree[i] = 0; in _PyTuple_ClearFreeList()
[all …]
Dframeobject.c611 assert(state->numfree != -1); in frame_dealloc()
613 if (state->numfree < PyFrame_MAXFREELIST) { in frame_dealloc()
614 ++state->numfree; in frame_dealloc()
802 assert(state->numfree != -1); in frame_alloc()
804 assert(state->numfree > 0); in frame_alloc()
805 --state->numfree; in frame_alloc()
1134 --state->numfree; in _PyFrame_ClearFreeList()
1136 assert(state->numfree == 0); in _PyFrame_ClearFreeList()
1145 state->numfree = -1; in _PyFrame_Fini()
1156 state->numfree, sizeof(PyFrameObject)); in _PyFrame_DebugMallocStats()
Dfloatobject.c131 assert(state->numfree != -1); in PyFloat_FromDouble()
134 state->numfree--; in PyFloat_FromDouble()
237 assert(state->numfree != -1); in float_dealloc()
239 if (state->numfree >= PyFloat_MAXFREELIST) { in float_dealloc()
243 state->numfree++; in float_dealloc()
2044 state->numfree = 0; in _PyFloat_ClearFreeList()
2053 state->numfree = -1; in _PyFloat_Fini()
2064 state->numfree, sizeof(PyFloatObject)); in _PyFloat_DebugMallocStats()
Dlistobject.c112 while (state->numfree) { in _PyList_ClearFreeList()
113 PyListObject *op = state->free_list[--state->numfree]; in _PyList_ClearFreeList()
125 state->numfree = -1; in _PyList_Fini()
136 state->numfree, sizeof(PyListObject)); in _PyList_DebugMallocStats()
151 assert(state->numfree != -1); in PyList_New()
153 if (state->numfree) { in PyList_New()
154 state->numfree--; in PyList_New()
155 op = state->free_list[state->numfree]; in PyList_New()
350 assert(state->numfree != -1); in list_dealloc()
352 if (state->numfree < PyList_MAXFREELIST && PyList_CheckExact(op)) { in list_dealloc()
[all …]
Ddictobject.c266 while (state->numfree) { in _PyDict_ClearFreeList()
267 PyDictObject *op = state->free_list[--state->numfree]; in _PyDict_ClearFreeList()
283 state->numfree = -1; in _PyDict_Fini()
295 state->numfree, sizeof(PyDictObject)); in _PyDict_DebugMallocStats()
654 assert(state->numfree != -1); in new_dict()
656 if (state->numfree) { in new_dict()
657 mp = state->free_list[--state->numfree]; in new_dict()
2081 assert(state->numfree != -1); in dict_dealloc()
2083 if (state->numfree < PyDict_MAXFREELIST && Py_IS_TYPE(mp, &PyDict_Type)) { in dict_dealloc()
2084 state->free_list[state->numfree++] = mp; in dict_dealloc()
/third_party/python/Python/
Dcontext.c347 assert(state->numfree != -1); in _context_alloc()
349 if (state->numfree) { in _context_alloc()
350 state->numfree--; in _context_alloc()
475 assert(state->numfree != -1); in context_tp_dealloc()
477 if (state->numfree < CONTEXT_FREELIST_MAXLEN) { in context_tp_dealloc()
478 state->numfree++; in context_tp_dealloc()
1293 for (; state->numfree; state->numfree--) { in _PyContext_ClearFreeList()
1311 state->numfree = -1; in _PyContext_Fini()
/third_party/python/Tools/c-analyzer/
DTODO90 Objects/dictobject.c:numfree static int numfree
94 Objects/floatobject.c:numfree static int numfree
96 Objects/frameobject.c:numfree static int numfree
102 Objects/listobject.c:numfree static int numfree
104 Objects/tupleobject.c:numfree static int numfree[PyTuple_MAXSAVE…
/third_party/python/Doc/whatsnew/
D2.6.rst3078 ``numfree``, and a macro ``Py<typename>_MAXFREELIST`` is