Repository navigation
Fix obsolete comments in gc.c #137562
Copy link
Copy link
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
Description
Activity
Hello, for the future, there is no need to create issues for trivial things that won’t need a blurb and longer discussion.
Reacted by Sergey Miryanov- addedinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
on Aug 8, 2025 @StanFromIreland Thanks! Will keep in mind.
It also doesn't hurt, we have an unlimited supply of issue numbers! In this case it might've made sense to combine the two PRs, though, as both are looking at the same topic (correcting confusing/out-of-date information).
A
@AA-Turner When I split them, I thought both changes can be discussed separately. I believe we should apply both changes because they are confusing. However, I think someone may want to keep notes about the survivor count for historical reasons, even though I think it is confusing now anyway.
But I open to merge them in one PR - just direct me :)
- added a commit that references this issue
on Aug 12, 2025
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
Projects
- StatusShow more project fieldsTodo
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