mirror of
https://github.com/python/cpython.git
synced 2025-10-19 16:03:42 +00:00
GH-132532: Add new DSL macros to better declare semantics of exits at ends of instructions/uops. (GH-137098)
This commit is contained in:
parent
c744b57fd6
commit
af15e1d13e
15 changed files with 524 additions and 609 deletions
|
@ -422,3 +422,14 @@ do { \
|
|||
_PyObjectArray_Free(NAME - 1, NAME##_temp);
|
||||
|
||||
#define CONVERSION_FAILED(NAME) ((NAME) == NULL)
|
||||
|
||||
static inline int
|
||||
check_periodics(PyThreadState *tstate) {
|
||||
_Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY();
|
||||
QSBR_QUIESCENT_STATE(tstate);
|
||||
if (_Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker) & _PY_EVAL_EVENTS_MASK) {
|
||||
return _Py_HandlePending(tstate);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue