/external/python/cpython2/Objects/ |
D | methodobject.c | 11 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()
|
D | frameobject.c | 443 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()
|
D | tupleobject.c | 19 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()
|
D | setobject.c | 55 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()
|
D | listobject.c | 98 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()
|
D | classobject.c | 11 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()
|
D | dictobject.c | 226 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()
|
D | unicodeobject.c | 98 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/cpython3/Objects/ |
D | methodobject.c | 11 static int numfree = 0; variable 33 numfree--; in PyCFunction_NewEx() 311 if (numfree < PyCFunction_MAXFREELIST) { in meth_dealloc() 314 numfree++; in meth_dealloc() 529 int freelist_size = numfree; in PyCFunction_ClearFreeList() 535 numfree--; in PyCFunction_ClearFreeList() 537 assert(numfree == 0); in PyCFunction_ClearFreeList() 553 numfree, sizeof(PyCFunctionObject)); in _PyCFunction_DebugMallocStats()
|
D | classobject.c | 12 static int numfree = 0; variable 57 numfree--; in PyMethod_New() 199 if (numfree < PyMethod_MAXFREELIST) { in method_dealloc() 202 numfree++; in method_dealloc() 380 int freelist_size = numfree; in PyMethod_ClearFreeList() 386 numfree--; in PyMethod_ClearFreeList() 388 assert(numfree == 0); in PyMethod_ClearFreeList() 404 numfree, sizeof(PyMethodObject)); in _PyMethod_DebugMallocStats()
|
D | frameobject.c | 408 static int numfree = 0; /* number of frames currently in free_list */ variable 443 else if (numfree < PyFrame_MAXFREELIST) { in frame_dealloc() 444 ++numfree; in frame_dealloc() 673 assert(numfree > 0); in PyFrame_New() 674 --numfree; in PyFrame_New() 973 int freelist_size = numfree; in PyFrame_ClearFreeList() 979 --numfree; in PyFrame_ClearFreeList() 981 assert(numfree == 0); in PyFrame_ClearFreeList() 997 numfree, sizeof(PyFrameObject)); in _PyFrame_DebugMallocStats()
|
D | tupleobject.c | 20 static int numfree[PyTuple_MAXSAVESIZE]; variable 70 numfree[i], _PyObject_VAR_SIZE(&PyTuple_Type, i)); in _PyTuple_DebugMallocStats() 95 numfree[size]--; in PyTuple_New() 123 ++numfree[0]; in PyTuple_New() 246 numfree[len] < PyTuple_MAXFREELIST && in tupledealloc() 250 numfree[len]++; in tupledealloc() 904 freelist_size += numfree[i]; in PyTuple_ClearFreeList() 906 numfree[i] = 0; in PyTuple_ClearFreeList()
|
D | floatobject.c | 21 static int numfree = 0; variable 115 numfree--; in PyFloat_FromDouble() 215 if (numfree >= PyFloat_MAXFREELIST) { in float_dealloc() 219 numfree++; in float_dealloc() 1963 int i = numfree; in PyFloat_ClearFreeList() 1970 numfree = 0; in PyFloat_ClearFreeList() 1986 numfree, sizeof(PyFloatObject)); in _PyFloat_DebugMallocStats()
|
D | listobject.c | 109 static int numfree = 0; variable 115 int ret = numfree; in PyList_ClearFreeList() 116 while (numfree) { in PyList_ClearFreeList() 117 op = free_list[--numfree]; in PyList_ClearFreeList() 136 numfree, sizeof(PyListObject)); in _PyList_DebugMallocStats() 155 if (numfree) { in PyList_New() 156 numfree--; in PyList_New() 157 op = free_list[numfree]; in PyList_New() 330 if (numfree < PyList_MAXFREELIST && PyList_CheckExact(op)) in list_dealloc() 331 free_list[numfree++] = op; in list_dealloc()
|
D | dictobject.c | 252 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() 579 if (numfree) { in new_dict() 580 mp = free_list[--numfree]; in new_dict() 2022 if (numfree < PyDict_MAXFREELIST && Py_TYPE(mp) == &PyDict_Type) in dict_dealloc() 2023 free_list[numfree++] = mp; in dict_dealloc()
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 3074 ``numfree``, and a macro ``Py<typename>_MAXFREELIST`` is
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.6.rst | 3078 ``numfree``, and a macro ``Py<typename>_MAXFREELIST`` is
|
/external/python/cpython2/Misc/ |
D | NEWS | 12122 lists in Object/ are named ``free_list``, the counter ``numfree``
|