diff options
author | Donghee Na <donghee.na@python.org> | 2024-09-24 01:28:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 01:28:59 (GMT) |
commit | ad7c7785461fffba04f5a36cd6d062e92b0fda16 (patch) | |
tree | 4e4da0559c1b120872095862f11ca915fac0d405 /Objects/object.c | |
parent | be76e3f26e0b907f711497d006b8b83bff04c036 (diff) | |
download | cpython-ad7c7785461fffba04f5a36cd6d062e92b0fda16.zip cpython-ad7c7785461fffba04f5a36cd6d062e92b0fda16.tar.gz cpython-ad7c7785461fffba04f5a36cd6d062e92b0fda16.tar.bz2 |
gh-123990: Good bye WITH_FREELISTS macro (gh-124358)
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Objects/object.c b/Objects/object.c index 4b8b6c2..bc63b81 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -816,7 +816,6 @@ PyObject_Bytes(PyObject *v) return PyBytes_FromObject(v); } -#ifdef WITH_FREELISTS static void clear_freelist(struct _Py_freelist *freelist, int is_finalization, freefunc dofree) @@ -841,12 +840,9 @@ free_object(void *obj) Py_DECREF(tp); } -#endif - void _PyObject_ClearFreeLists(struct _Py_freelists *freelists, int is_finalization) { -#ifdef WITH_FREELISTS // In the free-threaded build, freelists are per-PyThreadState and cleared in PyThreadState_Clear() // In the default build, freelists are per-interpreter and cleared in finalize_interp_types() clear_freelist(&freelists->floats, is_finalization, free_object); @@ -866,7 +862,6 @@ _PyObject_ClearFreeLists(struct _Py_freelists *freelists, int is_finalization) // stacks during GC, so emptying the free-list is counterproductive. clear_freelist(&freelists->object_stack_chunks, 1, PyMem_RawFree); } -#endif } /* |