mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
GH-104584: Fix ENTER_EXECUTOR (GH-106141)
* Check eval-breaker in ENTER_EXECUTOR. * Make sure that frame->prev_instr is set before entering executor.
This commit is contained in:
parent
7f4c8121db
commit
e5862113dd
8 changed files with 272 additions and 269 deletions
|
@ -117,7 +117,9 @@
|
|||
#define CHECK_EVAL_BREAKER() \
|
||||
_Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY(); \
|
||||
if (_Py_atomic_load_relaxed_int32(&tstate->interp->ceval.eval_breaker)) { \
|
||||
goto handle_eval_breaker; \
|
||||
if (_Py_HandlePending(tstate) != 0) { \
|
||||
goto error; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue