diff options
author | Ken Jin <kenjin@python.org> | 2024-03-23 22:19:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 22:19:17 (GMT) |
commit | 6c83352bfe78a7d567c8d76257df6eb91d5a7245 (patch) | |
tree | 8178c6d50eb24820632e8e79a4443eff4a3fd4d5 /Python | |
parent | f11d0d8be8af28e1368c3c7c116218cf65ddf93e (diff) | |
download | cpython-6c83352bfe78a7d567c8d76257df6eb91d5a7245.zip cpython-6c83352bfe78a7d567c8d76257df6eb91d5a7245.tar.gz cpython-6c83352bfe78a7d567c8d76257df6eb91d5a7245.tar.bz2 |
gh-117180: Complete call sequence when trace stack overflow (GH-117184)
---------
Co-authored-by: Peter Lazorchak <lazorchakp@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/optimizer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index 177ad34..f8c1390 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -476,6 +476,7 @@ BRANCH_TO_GUARD[4][2] = { if (trace_stack_depth >= TRACE_STACK_SIZE) { \ DPRINTF(2, "Trace stack overflow\n"); \ OPT_STAT_INC(trace_stack_overflow); \ + ADD_TO_TRACE(uop, oparg, operand, target); \ ADD_TO_TRACE(_EXIT_TRACE, 0, 0, 0); \ goto done; \ } \ |