From 45e62a2bc1c0000e2e9b613fff6bebf2c26fcb93 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Mon, 20 Jun 2022 12:59:25 +0100 Subject: GH-93897: Store frame size in code object and de-opt if insufficient space on thread frame stack. (GH-93908) --- Include/cpython/code.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Include/cpython/code.h') diff --git a/Include/cpython/code.h b/Include/cpython/code.h index 8e65474bb4..3ccd101415 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 */ \ -- cgit v1.2.1