Home
last modified time | relevance | path

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

/external/python/cpython3/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
/external/python/cpython2/Objects/
Dmethodobject.c11 static int numfree = 0; variable
24 numfree--; in PyCFunction_NewEx()
136 if (numfree < PyCFunction_MAXFREELIST) { in meth_dealloc()
139 numfree++; in meth_dealloc()
397 int freelist_size = numfree; in PyCFunction_ClearFreeList()
403 numfree--; in PyCFunction_ClearFreeList()
405 assert(numfree == 0); in PyCFunction_ClearFreeList()
Dframeobject.c479 static int numfree = 0; /* number of frames currently in free_list */ variable
514 else if (numfree < PyFrame_MAXFREELIST) { in frame_dealloc()
515 ++numfree; in frame_dealloc()
724 assert(numfree > 0); in PyFrame_New()
725 --numfree; in PyFrame_New()
999 int freelist_size = numfree; in PyFrame_ClearFreeList()
1005 --numfree; in PyFrame_ClearFreeList()
1007 assert(numfree == 0); in PyFrame_ClearFreeList()
Dtupleobject.c19 static int numfree[PyTuple_MAXSAVESIZE]; variable
68 numfree[size]--; in PyTuple_New()
99 ++numfree[0]; in PyTuple_New()
225 numfree[len] < PyTuple_MAXFREELIST && in tupledealloc()
229 numfree[len]++; in tupledealloc()
896 freelist_size += numfree[i]; in PyTuple_ClearFreeList()
898 numfree[i] = 0; in PyTuple_ClearFreeList()
Dsetobject.c55 static int numfree = 0; variable
566 if (numfree < PySet_MAXFREELIST && PyAnySet_CheckExact(so)) in set_dealloc()
567 free_list[numfree++] = so; in set_dealloc()
1011 if (numfree && in make_new_set()
1013 so = free_list[--numfree]; in make_new_set()
1081 while (numfree) { in PySet_Fini()
1082 numfree--; in PySet_Fini()
1083 so = free_list[numfree]; in PySet_Fini()
Dlistobject.c98 static int numfree = 0; variable
105 while (numfree) { in PyList_Fini()
106 op = free_list[--numfree]; in PyList_Fini()
134 if (numfree) { in PyList_New()
135 numfree--; in PyList_New()
136 op = free_list[numfree]; in PyList_New()
313 if (numfree < PyList_MAXFREELIST && PyList_CheckExact(op)) in list_dealloc()
314 free_list[numfree++] = op; in list_dealloc()
Dclassobject.c11 static int numfree = 0; variable
2258 numfree--; in PyMethod_New()
2388 if (numfree < PyMethod_MAXFREELIST) { in instancemethod_dealloc()
2391 numfree++; in instancemethod_dealloc()
2677 int freelist_size = numfree; in PyMethod_ClearFreeList()
2683 numfree--; in PyMethod_ClearFreeList()
2685 assert(numfree == 0); in PyMethod_ClearFreeList()
Ddictobject.c226 static int numfree = 0; variable
233 while (numfree) { in PyDict_Fini()
234 op = free_list[--numfree]; in PyDict_Fini()
258 if (numfree) { in PyDict_New()
259 mp = free_list[--numfree]; in PyDict_New()
1091 if (numfree < PyDict_MAXFREELIST && Py_TYPE(mp) == &PyDict_Type) in dict_dealloc()
1092 free_list[numfree++] = mp; in dict_dealloc()
Dunicodeobject.c98 static int numfree = 0; variable
336 numfree--; in _PyUnicode_New()
391 numfree < PyUnicode_MAXFREELIST) { in unicode_dealloc()
404 numfree++; in unicode_dealloc()
7744 return PyInt_FromLong(numfree);
8974 int freelist_size = numfree; in PyUnicode_ClearFreeList()
8984 numfree--; in PyUnicode_ClearFreeList()
8987 assert(numfree == 0); in PyUnicode_ClearFreeList()
/external/python/cpython3/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()
/external/python/cpython3/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()
/external/python/cpython3/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…
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp880 unsigned numfree; member
895 if(lists->nextfree >= lists->numfree) { in bpmnode_create()
904 lists->numfree = 0; in bpmnode_create()
906 if(!lists->memory[i].in_use) lists->freelist[lists->numfree++] = &lists->memory[i]; in bpmnode_create()
1009 lists.numfree = lists.memsize; in lodepng_huffman_code_lengths()
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst5269 Object/ are named ``free_list``, the counter ``numfree`` and the upper limit
/external/python/cpython2/Doc/whatsnew/
D2.6.rst3074 ``numfree``, and a macro ``Py<typename>_MAXFREELIST`` is
/external/python/cpython3/Doc/whatsnew/
D2.6.rst3078 ``numfree``, and a macro ``Py<typename>_MAXFREELIST`` is
/external/python/cpython3/Doc/data/
Dpython3.10.abi5994 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…
6032 …<var-decl name='numfree' type-id='type-id-375' visibility='default' filepath='./Include/internal/p…
6060 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…
6086 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…
6132 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…
6168 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…
8639 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…
12755 …<var-decl name='numfree' type-id='type-id-9' visibility='default' filepath='./Include/internal/pyc…