Skip to content

GC may hold frames longer than necessary #156425

Open

Description

@sergey-miryanov

Bug report

Bug description:

We should clear the frame on early return from gc_collect_main. I have a patch ready.

Found by @markshannon

cc @pablogsal

CPython versions tested on:

3.16, CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.15bugs and security fixes
    3.16new features, bugs and security fixes
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.15bugs and security fixes3.16new features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions