mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
GH-118095: Handle RETURN_GENERATOR
in tier 2 (GH-118180)
This commit is contained in:
parent
10bb90ed49
commit
f180b31e76
16 changed files with 143 additions and 81 deletions
|
@ -86,6 +86,18 @@
|
|||
#define PRE_DISPATCH_GOTO() ((void)0)
|
||||
#endif
|
||||
|
||||
#if LLTRACE
|
||||
#define LLTRACE_RESUME_FRAME() \
|
||||
do { \
|
||||
lltrace = maybe_lltrace_resume_frame(frame, &entry_frame, GLOBALS()); \
|
||||
if (lltrace < 0) { \
|
||||
goto exit_unwind; \
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define LLTRACE_RESUME_FRAME() ((void)0)
|
||||
#endif
|
||||
|
||||
#ifdef Py_GIL_DISABLED
|
||||
#define QSBR_QUIESCENT_STATE(tstate) _Py_qsbr_quiescent_state(((_PyThreadStateImpl *)tstate)->qsbr)
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue