summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-11-29 12:34:59 (GMT)
committerGitHub <noreply@github.com>2021-11-29 12:34:59 (GMT)
commit60929576e40038ec71d896230f69e4411c82be4b (patch)
tree34dc24d0a73ef0205514202820d66c152260dc22 /Include/cpython
parent7431448b817d3bf87f71661cf8f3d537807ab2e2 (diff)
downloadcpython-60929576e40038ec71d896230f69e4411c82be4b.zip
cpython-60929576e40038ec71d896230f69e4411c82be4b.tar.gz
cpython-60929576e40038ec71d896230f69e4411c82be4b.tar.bz2
bpo-45786: Allocate space for frame in frame object. (GH-29729)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/frameobject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/cpython/frameobject.h b/Include/cpython/frameobject.h
index e4cfac5..67f98a7 100644
--- a/Include/cpython/frameobject.h
+++ b/Include/cpython/frameobject.h
@@ -12,7 +12,9 @@ struct _frame {
int f_lineno; /* Current line number. Only valid if non-zero */
char f_trace_lines; /* Emit per-line trace events? */
char f_trace_opcodes; /* Emit per-opcode trace events? */
- char f_own_locals_memory; /* This frame owns the memory for the locals */
+ char f_owns_frame; /* This frame owns the frame */
+ /* The frame data, if this frame object owns the frame */
+ PyObject *_f_frame_data[1];
};
/* Standard object interface */
@@ -26,7 +28,7 @@ PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
/* only internal use */
PyFrameObject*
-_PyFrame_New_NoTrack(struct _interpreter_frame *, int);
+_PyFrame_New_NoTrack(PyCodeObject *code);
/* The rest of the interface is specific for frame objects */