mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
gh-118926: Spill deferred references to stack in cases generator (#122748)
This automatically spills the results from `_PyStackRef_FromPyObjectNew` to the in-memory stack so that the deferred references are visible to the GC before we make any possibly escaping call. Co-authored-by: Ken Jin <kenjin@python.org>
This commit is contained in:
parent
967a4f1d18
commit
3e753c689a
9 changed files with 176 additions and 63 deletions
|
@ -1424,7 +1424,7 @@ dummy_func(
|
|||
"no locals found");
|
||||
ERROR_IF(true, error);
|
||||
}
|
||||
locals = PyStackRef_FromPyObjectNew(l);;
|
||||
locals = PyStackRef_FromPyObjectNew(l);
|
||||
}
|
||||
|
||||
inst(LOAD_FROM_DICT_OR_GLOBALS, (mod_or_class_dict -- v)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue