mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
gh-123990: Good bye WITH_FREELISTS macro (gh-124358)
This commit is contained in:
parent
be76e3f26e
commit
ad7c778546
16 changed files with 4 additions and 100 deletions
|
@ -235,15 +235,10 @@ static void
|
|||
float_dealloc(PyObject *op)
|
||||
{
|
||||
assert(PyFloat_Check(op));
|
||||
#ifdef WITH_FREELISTS
|
||||
if (PyFloat_CheckExact(op)) {
|
||||
if (PyFloat_CheckExact(op))
|
||||
_PyFloat_ExactDealloc(op);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
Py_TYPE(op)->tp_free(op);
|
||||
}
|
||||
}
|
||||
|
||||
double
|
||||
|
@ -1975,12 +1970,10 @@ _PyFloat_FiniType(PyInterpreterState *interp)
|
|||
void
|
||||
_PyFloat_DebugMallocStats(FILE *out)
|
||||
{
|
||||
#ifdef WITH_FREELISTS
|
||||
_PyDebugAllocatorStats(out,
|
||||
"free PyFloatObject",
|
||||
_Py_FREELIST_SIZE(floats),
|
||||
sizeof(PyFloatObject));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue