Skip to content

gh-137562: Remove reference for GC_REACHABLE because it is obsolete #137563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

sergey-miryanov
Copy link
Contributor

@sergey-miryanov sergey-miryanov commented Aug 8, 2025

subtract_refs references an obsolete constant GC_REACHABLE

cpython/Python/gc.c

Lines 572 to 577 in 34d7351

/* 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

@sergey-miryanov
Copy link
Contributor Author

I believe this should skip news.

@sergey-miryanov
Copy link
Contributor Author

@methane @nascheme Please take a look.

@methane methane merged commit c744b57 into python:main Aug 9, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants