Skip to content

GC may hold frames longer than necessary #156425

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

Metadata

Metadata

Labels

3.15pre-release feature fixes, bugs 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