Home
last modified time | relevance | path

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

/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.c443 static int numfree = 0; /* number of frames currently in free_list */ variable
478 else if (numfree < PyFrame_MAXFREELIST) { in frame_dealloc()
479 ++numfree; in frame_dealloc()
688 assert(numfree > 0); in PyFrame_New()
689 --numfree; in PyFrame_New()
963 int freelist_size = numfree; in PyFrame_ClearFreeList()
969 --numfree; in PyFrame_ClearFreeList()
971 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()
899 freelist_size += numfree[i]; in PyTuple_ClearFreeList()
901 numfree[i] = 0; in PyTuple_ClearFreeList()
Dsetobject.c55 static int numfree = 0; variable
565 if (numfree < PySet_MAXFREELIST && PyAnySet_CheckExact(so)) in set_dealloc()
566 free_list[numfree++] = so; in set_dealloc()
1008 if (numfree && in make_new_set()
1010 so = free_list[--numfree]; in make_new_set()
1078 while (numfree) { in PySet_Fini()
1079 numfree--; in PySet_Fini()
1080 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
2260 numfree--; in PyMethod_New()
2390 if (numfree < PyMethod_MAXFREELIST) { in instancemethod_dealloc()
2393 numfree++; in instancemethod_dealloc()
2680 int freelist_size = numfree; in PyMethod_ClearFreeList()
2686 numfree--; in PyMethod_ClearFreeList()
2688 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()
1045 if (numfree < PyDict_MAXFREELIST && Py_TYPE(mp) == &PyDict_Type) in dict_dealloc()
1046 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()
7749 return PyInt_FromLong(numfree);
8978 int freelist_size = numfree; in PyUnicode_ClearFreeList()
8988 numfree--; in PyUnicode_ClearFreeList()
8991 assert(numfree == 0); in PyUnicode_ClearFreeList()
/external/python/cpython2/Doc/whatsnew/
D2.6.rst3074 ``numfree``, and a macro ``Py<typename>_MAXFREELIST`` is
/external/python/cpython2/Misc/
DNEWS12122 lists in Object/ are named ``free_list``, the counter ``numfree``