diff options
| author | Mark Shannon <mark@hotpy.org> | 2024-04-25 10:32:47 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-25 10:32:47 (GMT) |
| commit | f180b31e7629d36265fa36f1560365358b4fd47c (patch) | |
| tree | 3a887125f428f481fd85753d3f6b896843e84b3a /Python/frame.c | |
| parent | 10bb90ed49a81a525b126ce8e4d8564c1616d0b3 (diff) | |
| download | cpython-f180b31e7629d36265fa36f1560365358b4fd47c.zip cpython-f180b31e7629d36265fa36f1560365358b4fd47c.tar.gz cpython-f180b31e7629d36265fa36f1560365358b4fd47c.tar.bz2 | |
GH-118095: Handle `RETURN_GENERATOR` in tier 2 (GH-118180)
Diffstat (limited to 'Python/frame.c')
| -rw-r--r-- | Python/frame.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Python/frame.c b/Python/frame.c index f88a8f0..db9d133 100644 --- a/Python/frame.c +++ b/Python/frame.c @@ -53,18 +53,6 @@ _PyFrame_MakeAndSetFrameObject(_PyInterpreterFrame *frame) return f; } -void -_PyFrame_Copy(_PyInterpreterFrame *src, _PyInterpreterFrame *dest) -{ - assert(src->stacktop >= _PyFrame_GetCode(src)->co_nlocalsplus); - Py_ssize_t size = ((char*)&src->localsplus[src->stacktop]) - (char *)src; - memcpy(dest, src, size); - // Don't leave a dangling pointer to the old frame when creating generators - // and coroutines: - dest->previous = NULL; -} - - static void take_ownership(PyFrameObject *f, _PyInterpreterFrame *frame) { |
