File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments