1
gc.c/subtract_refs references an obsolete constant GC_REACHABLE
|
/* Subtract internal references from gc_refs. After this, gc_refs is >= 0 |
|
* for all objects in containers, and is GC_REACHABLE for all tracked gc |
|
* objects not in containers. The ones with gc_refs > 0 are directly |
|
* reachable from outside containers, and so can't be collected. |
|
*/ |
|
static void |
It is obsolete since #7043
2
gc.c/SCAN_RATE_DIVISOR has obsolete comment about calculating incremental threshold based on count of survivors. It is obsolete since #117120
|
/* Making progress in the incremental collector |
|
* In order to eventually collect all cycles |
|
* the incremental collector must progress through the old |
|
* space faster than objects are added to the old space. |
|
* |
|
* Each young or incremental collection adds a number of |
|
* objects, S (for survivors) to the old space, and |
|
* incremental collectors scan I objects from the old space. |
|
* I > S must be true. We also want I > S * N to be where |
|
* N > 1. Higher values of N mean that the old space is |
|
* scanned more rapidly. |
|
* The default incremental threshold of 10 translates to |
|
* N == 1.4 (1 + 4/threshold) |
|
*/ |
|
|
|
/* Divide by 10, so that the default incremental threshold of 10 |
|
* scans objects at 1% of the heap size */ |
|
#define SCAN_RATE_DIVISOR 10 |
3
Reference #135552 instead of #91636 when writing about deallocated objects in the type cache.
Linked PRs
1
gc.c/subtract_refsreferences an obsolete constantGC_REACHABLEcpython/Python/gc.c
Lines 572 to 577 in 34d7351
It is obsolete since #7043
2
gc.c/SCAN_RATE_DIVISORhas obsolete comment about calculating incremental threshold based on count of survivors. It is obsolete since #117120cpython/Python/gc.c
Lines 1345 to 1362 in 34d7351
3
Reference #135552 instead of #91636 when writing about deallocated objects in the type cache.
Linked PRs