mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-45637: Store the frame pointer in the cframe (GH-29267)
* Rename 'frame' to 'current_frame'
This commit is contained in:
parent
0a68b3603f
commit
f291404a80
10 changed files with 42 additions and 41 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue