File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
#include "pycore_tstate.h" // _PyThreadStateImpl
4
4
5
5
#ifdef Py_GIL_DISABLED
6
+
6
7
/* Clear all free lists
7
8
* All free lists are cleared during the collection of the highest generation.
8
9
* Allocated items in the free list may keep a pymalloc arena occupied.
9
10
* 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.
10
13
*/
11
14
void
12
15
_PyGC_ClearFreeList (PyInterpreterState * interp )
Original file line number Diff line number Diff line change 8
8
* Allocated items in the free list may keep a pymalloc arena occupied.
9
9
* Clearing the free lists may give back memory to the OS earlier.
10
10
*/
11
-
12
11
void
13
12
_PyGC_ClearFreeList (PyInterpreterState * interp )
14
13
{
You can’t perform that action at this time.
0 commit comments