Feature or enhancement
Proposal:
Now it is checked every _Py_HandlePending call.
|
/* Stop-the-world */ |
|
if ((breaker & _PY_EVAL_PLEASE_STOP_BIT) != 0) { |
|
_Py_unset_eval_breaker_bit(tstate, _PY_EVAL_PLEASE_STOP_BIT); |
|
_PyThreadState_Suspend(tstate); |
|
|
|
/* The attach blocks until the stop-the-world event is complete. */ |
|
_PyThreadState_Attach(tstate); |
|
} |
|
#if defined(Py_REMOTE_DEBUG) && defined(Py_SUPPORTS_REMOTE_DEBUG) |
|
_PyRunRemoteDebugger(tstate); |
|
#endif |
Should we move this under if ((breaker & _PY_EVAL_PLEASE_STOP_BIT) != 0)? If yes, I have a PR ready.
cc @pablogsal
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response