summaryrefslogtreecommitdiffstats
path: root/Include/cpython/code.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-06-20 11:59:25 (GMT)
committerGitHub <noreply@github.com>2022-06-20 11:59:25 (GMT)
commit45e62a2bc1c0000e2e9b613fff6bebf2c26fcb93 (patch)
tree2fb6748705e118b6a3cd9264f6b946bcfa06e5e5 /Include/cpython/code.h
parent774ef28814d0d9d57ec813cb31b0a7af6c476127 (diff)
downloadcpython-45e62a2bc1c0000e2e9b613fff6bebf2c26fcb93.zip
cpython-45e62a2bc1c0000e2e9b613fff6bebf2c26fcb93.tar.gz
cpython-45e62a2bc1c0000e2e9b613fff6bebf2c26fcb93.tar.bz2
GH-93897: Store frame size in code object and de-opt if insufficient space on thread frame stack. (GH-93908)
Diffstat (limited to 'Include/cpython/code.h')
-rw-r--r--Include/cpython/code.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h
index 8e65474..3ccd101 100644
--- a/Include/cpython/code.h
+++ b/Include/cpython/code.h
@@ -73,8 +73,8 @@ typedef uint16_t _Py_CODEUNIT;
\
/* redundant values (derived from co_localsplusnames and \
co_localspluskinds) */ \
- int co_nlocalsplus; /* number of local + cell + free variables \
- */ \
+ int co_nlocalsplus; /* number of local + cell + free variables */ \
+ int co_framesize; /* Size of frame in words */ \
int co_nlocals; /* number of local variables */ \
int co_nplaincellvars; /* number of non-arg cell variables */ \
int co_ncellvars; /* total number of cell variables */ \