summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-08-07 17:23:53 (GMT)
committerGitHub <noreply@github.com>2024-08-07 17:23:53 (GMT)
commit3e753c689a802d2e6d909cce3e22173977b2edbf (patch)
tree7330f998c15e42dbf12622dffccd773e5c5520dd /Python/bytecodes.c
parent967a4f1d180d4cd669d5c6e3ac5ba99af4e72d4e (diff)
downloadcpython-3e753c689a802d2e6d909cce3e22173977b2edbf.zip
cpython-3e753c689a802d2e6d909cce3e22173977b2edbf.tar.gz
cpython-3e753c689a802d2e6d909cce3e22173977b2edbf.tar.bz2
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>
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index d28cbd7..b68f932 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -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)) {