Skip to content

Commit cc82e0d

Browse files
Remove obsolete comment about calculating incremental threshold
1 parent 34d7351 commit cc82e0d

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Python/gc.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,21 +1342,6 @@ gc_list_set_space(PyGC_Head *list, int space)
13421342
return size;
13431343
}
13441344

1345-
/* Making progress in the incremental collector
1346-
* In order to eventually collect all cycles
1347-
* the incremental collector must progress through the old
1348-
* space faster than objects are added to the old space.
1349-
*
1350-
* Each young or incremental collection adds a number of
1351-
* objects, S (for survivors) to the old space, and
1352-
* incremental collectors scan I objects from the old space.
1353-
* I > S must be true. We also want I > S * N to be where
1354-
* N > 1. Higher values of N mean that the old space is
1355-
* scanned more rapidly.
1356-
* The default incremental threshold of 10 translates to
1357-
* N == 1.4 (1 + 4/threshold)
1358-
*/
1359-
13601345
/* Divide by 10, so that the default incremental threshold of 10
13611346
* scans objects at 1% of the heap size */
13621347
#define SCAN_RATE_DIVISOR 10

0 commit comments

Comments
 (0)