aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-01-21 10:15:02 +0000
committerGitHub <noreply@github.com>2025-01-21 10:15:02 +0000
commitf5b6356a11bde64ac1e08478dd5ee7c47da653d8 (patch)
treef9367b879f47e48c03b0dbe66a9d573302f87764 /Python/ceval_macros.h
parentd3b1bb228c951f8245f36ee28d9b175786522730 (diff)
downloadcpython-f5b6356a11bde64ac1e08478dd5ee7c47da653d8.tar.gz
cpython-f5b6356a11bde64ac1e08478dd5ee7c47da653d8.zip
GH-128563: Add new frame owner type for interpreter entry frames (GH-129078)
Add new frame owner type for interpreter entry frames
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r--Python/ceval_macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index c37e1cf3afa..6a982ee2ca5 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -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)