-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
In #118450, Sam pointed out that GC can occur at any Py_DECREF
. With deferred references, we will need to traverse the object's stacks. The main problem is that frame->stacktop
might not represent the true stacktop at a GC collection, because frame->stacktop
is not set in between opcodes.
This requires either scanning the entire stack (not just up to stacktop), or deferring GC to safe points.
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error