Skip to content

more algorithm-independent GC infra - #7194

Merged
youknowone merged 4 commits into
RustPython:mainfrom
youknowone:gc-infra
Feb 22, 2026
Merged

youknowone merged 4 commits into
RustPython:mainfrom
youknowone:gc-infra

Conversation

@youknowone

@youknowone youknowone commented Feb 21, 2026

Copy link
Copy Markdown
Member

separated from #6849

Summary by CodeRabbit

  • New Features

    • CPython-compatible generational garbage collector with cycle detection, finalization, resurrection handling, and uncollectable tracking.
    • Deferred-drop and trashcan mechanisms to safely handle deep or recursive deallocation.
    • Public GC triggers to run targeted collections.
  • Bug Fixes

    • Reordered interpreter shutdown to run atexit, set finalizing, force GC, then finalize modules—improves finalization and unraisable reporting.
    • Improved weakref/finalizer and GC untracking semantics.
  • Chores

    • Spell-check vocabulary expanded; GC feature enabled in build config.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant