summaryrefslogtreecommitdiffstats
path: root/Objects/genobject.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-09-07 13:39:03 (GMT)
committerGitHub <noreply@github.com>2023-09-07 13:39:03 (GMT)
commit0858328ca2457ae95715eb93e347d5c0547bec6f (patch)
tree35c18050d74c747699f30e9862fd4a63fb14eaa7 /Objects/genobject.c
parentd485551c9d1792ff3539eef1d6374bd4c01dcd5d (diff)
downloadcpython-0858328ca2457ae95715eb93e347d5c0547bec6f.zip
cpython-0858328ca2457ae95715eb93e347d5c0547bec6f.tar.gz
cpython-0858328ca2457ae95715eb93e347d5c0547bec6f.tar.bz2
GH-108614: Add `RESUME_CHECK` instruction (GH-108630)
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r--Objects/genobject.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index 10c55ef..40033d1 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -333,7 +333,11 @@ gen_close_iter(PyObject *yf)
static inline bool
is_resume(_Py_CODEUNIT *instr)
{
- return instr->op.code == RESUME || instr->op.code == INSTRUMENTED_RESUME;
+ return (
+ instr->op.code == RESUME ||
+ instr->op.code == RESUME_CHECK ||
+ instr->op.code == INSTRUMENTED_RESUME
+ );
}
static inline bool