Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dmethodobject.c13 static int numfree = 0; variable
35 numfree--; in PyCFunction_NewEx()
93 if (numfree < PyCFunction_MAXFREELIST) { in meth_dealloc()
96 numfree++; in meth_dealloc()
308 int freelist_size = numfree; in PyCFunction_ClearFreeList()
314 numfree--; in PyCFunction_ClearFreeList()
316 assert(numfree == 0); in PyCFunction_ClearFreeList()
332 numfree, sizeof(PyCFunctionObject)); in _PyCFunction_DebugMallocStats()
Dclassobject.c14 static int numfree = 0; variable
59 numfree--; in PyMethod_New()
198 if (numfree < PyMethod_MAXFREELIST) { in method_dealloc()
201 numfree++; in method_dealloc()
372 int freelist_size = numfree; in PyMethod_ClearFreeList()
378 numfree--; in PyMethod_ClearFreeList()
380 assert(numfree == 0); in PyMethod_ClearFreeList()
396 numfree, sizeof(PyMethodObject)); in _PyMethod_DebugMallocStats()
Dframeobject.c453 static int numfree = 0; /* number of frames currently in free_list */ variable
487 else if (numfree < PyFrame_MAXFREELIST) { in frame_dealloc()
488 ++numfree; in frame_dealloc()
721 assert(numfree > 0); in _PyFrame_New_NoTrack()
722 --numfree; in _PyFrame_New_NoTrack()
1032 int freelist_size = numfree; in PyFrame_ClearFreeList()
1038 --numfree; in PyFrame_ClearFreeList()
1040 assert(numfree == 0); in PyFrame_ClearFreeList()
1056 numfree, sizeof(PyFrameObject)); in _PyFrame_DebugMallocStats()
Dtupleobject.c28 static int numfree[PyTuple_MAXSAVESIZE]; variable
73 numfree[i], _PyObject_VAR_SIZE(&PyTuple_Type, i)); in _PyTuple_DebugMallocStats()
98 numfree[size]--; in PyTuple_New()
126 ++numfree[0]; in PyTuple_New()
249 numfree[len] < PyTuple_MAXFREELIST && in tupledealloc()
253 numfree[len]++; in tupledealloc()
916 freelist_size += numfree[i]; in PyTuple_ClearFreeList()
918 numfree[i] = 0; in PyTuple_ClearFreeList()
Dfloatobject.c26 static int numfree = 0; variable
120 numfree--; in PyFloat_FromDouble()
219 if (numfree >= PyFloat_MAXFREELIST) { in float_dealloc()
223 numfree++; in float_dealloc()
2012 int i = numfree; in PyFloat_ClearFreeList()
2019 numfree = 0; in PyFloat_ClearFreeList()
2035 numfree, sizeof(PyFloatObject)); in _PyFloat_DebugMallocStats()
Dlistobject.c107 static int numfree = 0; variable
113 int ret = numfree; in PyList_ClearFreeList()
114 while (numfree) { in PyList_ClearFreeList()
115 op = free_list[--numfree]; in PyList_ClearFreeList()
134 numfree, sizeof(PyListObject)); in _PyList_DebugMallocStats()
153 if (numfree) { in PyList_New()
154 numfree--; in PyList_New()
155 op = free_list[numfree]; in PyList_New()
328 if (numfree < PyList_MAXFREELIST && PyList_CheckExact(op)) in list_dealloc()
329 free_list[numfree++] = op; in list_dealloc()
Ddictobject.c252 static int numfree = 0; variable
262 int ret = numfree + numfreekeys; in PyDict_ClearFreeList()
263 while (numfree) { in PyDict_ClearFreeList()
264 op = free_list[--numfree]; in PyDict_ClearFreeList()
279 "free PyDictObject", numfree, sizeof(PyDictObject)); in _PyDict_DebugMallocStats()
577 if (numfree) { in new_dict()
578 mp = free_list[--numfree]; in new_dict()
1915 if (numfree < PyDict_MAXFREELIST && Py_TYPE(mp) == &PyDict_Type) in dict_dealloc()
1916 free_list[numfree++] = mp; in dict_dealloc()
/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/Tools/c-globals/
Dignored-globals.txt158 numfree
163 numfree
172 numfree
176 numfree
186 numfree
190 numfree
197 numfree
/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