diff options
author | Mark Shannon <mark@hotpy.org> | 2021-10-28 12:59:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 12:59:11 (GMT) |
commit | f291404a802d6a1bc50f817c7a26ff3ac9a199ff (patch) | |
tree | 57ad999fe2fb5febf8a48cd17dc213259b80574c /Include | |
parent | 0a68b3603fbc0aaf9eeb8ce8b42b78d6fa7cfa78 (diff) | |
download | cpython-f291404a802d6a1bc50f817c7a26ff3ac9a199ff.zip cpython-f291404a802d6a1bc50f817c7a26ff3ac9a199ff.tar.gz cpython-f291404a802d6a1bc50f817c7a26ff3ac9a199ff.tar.bz2 |
bpo-45637: Store the frame pointer in the cframe (GH-29267)
* Rename 'frame' to 'current_frame'
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/pystate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 528d2a2..cf69c72 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -46,6 +46,8 @@ typedef struct _cframe { * accessed outside of their lifetime. */ int use_tracing; + /* Pointer to the currently executing frame (it can be NULL) */ + struct _interpreter_frame *current_frame; struct _cframe *previous; } CFrame; @@ -77,8 +79,6 @@ struct _ts { struct _ts *next; PyInterpreterState *interp; - /* Borrowed reference to the current frame (it can be NULL) */ - struct _interpreter_frame *frame; int recursion_depth; int recursion_headroom; /* Allow 50 more calls to handle any errors. */ int stackcheck_counter; |