mirror of
https://github.com/python/cpython.git
synced 2026-06-28 11:50:50 +00:00
gh-151436: Fix missing tstate->last_profiled_frame updates (#151437)
This commit is contained in:
parent
eff805b7a7
commit
a8d74c062f
8 changed files with 33 additions and 8 deletions
2
Python/executor_cases.c.h
generated
2
Python/executor_cases.c.h
generated
|
|
@ -9340,6 +9340,7 @@
|
|||
gen->gi_exc_state.previous_item = NULL;
|
||||
_Py_LeaveRecursiveCallPy(tstate);
|
||||
_PyInterpreterFrame *gen_frame = frame;
|
||||
_PyThreadState_UpdateLastProfiledFrame(tstate, gen_frame, gen_frame->previous);
|
||||
frame = tstate->current_frame = frame->previous;
|
||||
gen_frame->previous = NULL;
|
||||
((_PyThreadStateImpl *)tstate)->generator_return_kind = GENERATOR_YIELD;
|
||||
|
|
@ -20346,6 +20347,7 @@
|
|||
gen_frame->owner = FRAME_OWNED_BY_GENERATOR;
|
||||
_Py_LeaveRecursiveCallPy(tstate);
|
||||
_PyInterpreterFrame *prev = frame->previous;
|
||||
_PyThreadState_UpdateLastProfiledFrame(tstate, frame, prev);
|
||||
_PyThreadState_PopFrame(tstate, frame);
|
||||
frame = tstate->current_frame = prev;
|
||||
LOAD_IP(frame->return_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue