summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 3ceae22..839413a 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2838,7 +2838,9 @@ _PyInterpreterState_SetEvalFrameFunc(PyInterpreterState *interp,
}
#endif
RARE_EVENT_INC(set_eval_frame_func);
+ _PyEval_StopTheWorld(interp);
interp->eval_frame = eval_frame;
+ _PyEval_StartTheWorld(interp);
}