Skip to content

Commit 3dc6ee5

Browse files
committed
Adjust comment
1 parent 08c8613 commit 3dc6ee5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Python/gc_free_threading.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
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
*/
1114
void
1215
_PyGC_ClearFreeList(PyInterpreterState *interp)

Python/gc_gil.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
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-
1211
void
1312
_PyGC_ClearFreeList(PyInterpreterState *interp)
1413
{

0 commit comments

Comments
 (0)