Title: Fix obsolete comments in gc.c · Issue #137562 · python/cpython · GitHub
Open Graph Title: Fix obsolete comments in gc.c · Issue #137562 · python/cpython
X Title: Fix obsolete comments in gc.c · Issue #137562 · python/cpython
Description: 1 gc.c/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_REACHA...
Open Graph Description: 1 gc.c/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...
X Description: 1 gc.c/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 ...
Opengraph URL: https://github.com/python/cpython/issues/137562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix obsolete comments in gc.c","articleBody":"\n\n## 1\n`gc.c/subtract_refs` references an obsolete constant `GC_REACHABLE` \nhttps://github.com/python/cpython/blob/34d7351ac770ac49875fc39396b2a97828ba05ad/Python/gc.c#L572-L577\n\nIt is obsolete since https://github.com/python/cpython/pull/7043\n\n## 2\n`gc.c/SCAN_RATE_DIVISOR` has obsolete comment about calculating incremental threshold based on count of survivors. It is obsolete since https://github.com/python/cpython/pull/117120\n\nhttps://github.com/python/cpython/blob/34d7351ac770ac49875fc39396b2a97828ba05ad/Python/gc.c#L1345-L1362\n\n## 3\nReference https://github.com/python/cpython/issues/135552 instead of https://github.com/python/cpython/issues/91636 when writing about deallocated objects in the type cache.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-137563\n* gh-137564\n* gh-137614\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sergey-miryanov","@type":"Person","name":"sergey-miryanov"},"datePublished":"2025-08-08T16:40:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/137562/cpython/issues/137562"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75e29cb9-14db-41d7-ef7b-4953984c1946 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E838:7E20E:B68A3C:FB31CD:696A8680 |
| html-safe-nonce | c507acfd327724b9f70348b6fff128e28010f80a0e43d8f977f53b50e01ff67e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODM4OjdFMjBFOkI2OEEzQzpGQjMxQ0Q6Njk2QTg2ODAiLCJ2aXNpdG9yX2lkIjoiMzkwODcyNTc4NTEwMjAyNjM2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57ba115bf5230305c0f207dfc4a9b6ccc90e6522efa545ca9770b57cf4baab0d |
| hovercard-subject-tag | issue:3304636284 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/137562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecc18d6c9121f6ac22d524bd91529f7d6394640f1172378128681ccf6add7b30/python/cpython/issues/137562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecc18d6c9121f6ac22d524bd91529f7d6394640f1172378128681ccf6add7b30/python/cpython/issues/137562 |
| og:image:alt | 1 gc.c/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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sergey-miryanov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width