File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33#include "pycore_tstate.h" // _PyThreadStateImpl
44
55#ifdef Py_GIL_DISABLED
6+
67/* Clear all free lists
78 * All free lists are cleared during the collection of the highest generation.
89 * Allocated items in the free list may keep a pymalloc arena occupied.
910 * Clearing the free lists may give back memory to the OS earlier.
11+ * Free-threading version: Since freelists are managed per thread,
12+ * GC should clear all freelists by traversing all threads.
1013 */
1114void
1215_PyGC_ClearFreeList (PyInterpreterState * interp )
Original file line number Diff line number Diff line change 88 * Allocated items in the free list may keep a pymalloc arena occupied.
99 * Clearing the free lists may give back memory to the OS earlier.
1010 */
11-
1211void
1312_PyGC_ClearFreeList (PyInterpreterState * interp )
1413{
You can’t perform that action at this time.
0 commit comments