mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-128563: Add new frame owner type for interpreter entry frames (GH-129078)
Add new frame owner type for interpreter entry frames
This commit is contained in:
parent
d3b1bb228c
commit
f5b6356a11
13 changed files with 33 additions and 48 deletions
|
@ -89,7 +89,7 @@
|
|||
#if LLTRACE
|
||||
#define LLTRACE_RESUME_FRAME() \
|
||||
do { \
|
||||
lltrace = maybe_lltrace_resume_frame(frame, &entry_frame, GLOBALS()); \
|
||||
lltrace = maybe_lltrace_resume_frame(frame, GLOBALS()); \
|
||||
if (lltrace < 0) { \
|
||||
goto exit_unwind; \
|
||||
} \
|
||||
|
@ -238,7 +238,7 @@ GETITEM(PyObject *v, Py_ssize_t i) {
|
|||
#endif
|
||||
|
||||
#define WITHIN_STACK_BOUNDS() \
|
||||
(frame == &entry_frame || (STACK_LEVEL() >= 0 && STACK_LEVEL() <= STACK_SIZE()))
|
||||
(frame->owner == FRAME_OWNED_BY_INTERPRETER || (STACK_LEVEL() >= 0 && STACK_LEVEL() <= STACK_SIZE()))
|
||||
|
||||
/* Data access macros */
|
||||
#define FRAME_CO_CONSTS (_PyFrame_GetCode(frame)->co_consts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue