Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-144054: no deferred refcount for untracked#144081

Merged
nascheme merged 1 commit into
python:mainpython/cpython:mainfrom
nascheme:gh-144054-untracked-do-not-defernascheme/cpython:gh-144054-untracked-do-not-deferCopy head branch name to clipboard
Jan 20, 2026
Merged

gh-144054: no deferred refcount for untracked#144081
nascheme merged 1 commit into
python:mainpython/cpython:mainfrom
nascheme:gh-144054-untracked-do-not-defernascheme/cpython:gh-144054-untracked-do-not-deferCopy head branch name to clipboard

Conversation

@nascheme

@nascheme nascheme commented Jan 20, 2026

Copy link
Copy Markdown
Member

This reverts gh-144055 and fixes the bug in a different way. Deferred reference counting relies on the object being tracked by the GC, otherwise the object will live until interpreter shutdown. So, take care that we do not enable deferred reference counting for objects that are untracked. Also, if a tuple has deferred reference counting enabled, don't untrack it.

This reverts pythongh-144055 and fixes the bug in a different way.  Deferred
reference counting relies on the object being tracked by the GC,
otherwise the object will live until interpreter shutdown.  So, take
care that we do not enable deferred reference counting for objects that
are untracked.  Also, if a tuple has deferred reference counting
enabled, don't untrack it.

@colesbury colesbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nascheme nascheme merged commit 48b6866 into python:main Jan 20, 2026
55 checks passed
@nascheme nascheme deleted the gh-144054-untracked-do-not-defer branch January 20, 2026 18:01
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
This reverts pythongh-144055 and fixes the bug in a different way.  Deferred
reference counting relies on the object being tracked by the GC,
otherwise the object will live until interpreter shutdown.  So, take
care that we do not enable deferred reference counting for objects that
are untracked.  Also, if a tuple has deferred reference counting
enabled, don't untrack it.
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.