Skip to content

Commit e1f9475

Browse files
Remove entry_frame
1 parent 15ca6dd commit e1f9475

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ dummy_func(
104104
PyObject *codeobj;
105105
PyObject *cond;
106106
PyObject *descr;
107-
_PyInterpreterFrame entry_frame;
108107
PyObject *exc;
109108
PyObject *exit;
110109
PyObject *fget;
@@ -5225,7 +5224,7 @@ dummy_func(
52255224
#endif
52265225

52275226
/* Log traceback info. */
5228-
assert(frame != &entry_frame);
5227+
assert(frame->owner != FRAME_OWNED_BY_INTERPRETER);
52295228
if (!_PyFrame_IsIncomplete(frame)) {
52305229
PyFrameObject *f = _PyFrame_GetFrameObject(frame);
52315230
if (f != NULL) {
@@ -5292,7 +5291,7 @@ dummy_func(
52925291
label(exit_unwind) {
52935292
assert(_PyErr_Occurred(tstate));
52945293
_Py_LeaveRecursiveCallPy(tstate);
5295-
assert(frame != &entry_frame);
5294+
assert(frame->owner != FRAME_OWNED_BY_INTERPRETER);
52965295
// GH-99729: We need to unlink the frame *before* clearing it:
52975296
_PyInterpreterFrame *dying = frame;
52985297
frame = tstate->current_frame = dying->previous;

Python/generated_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)