[issue45963] Embed interpreter frame in generator.
Pablo Galindo Salgado
report at bugs.python.org
Tue Dec 7 05:41:54 EST 2021
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
Unfortunately, all refleak buildbots are failing after 299483c95d601ddcfdce2f96418b6499c1fc7b9f was merged. I bisected the problem to it:
299483c95d601ddcfdce2f96418b6499c1fc7b9f is the first bad commit
commit 299483c95d601ddcfdce2f96418b6499c1fc7b9f
Author: Mark Shannon <mark at hotpy.org>
Date: Mon Dec 6 10:13:49 2021 +0000
bpo-45963: Make space for the InterpreterFrame of a generator in that generator. (GH-29891)
* Make generator, coroutine and async gen structs all the same size.
* Store interpreter frame in generator (and coroutine). Reduces the number of allocations neeeded for a generator from two to one.
Include/cpython/genobject.h | 23 ++---
Include/internal/pycore_ceval.h | 2 +-
Include/internal/pycore_frame.h | 2 +-
Lib/test/test_sys.py | 2 +-
Objects/genobject.c | 183 ++++++++++++++++++++++------------------
Python/ceval.c | 41 +++------
Python/frame.c | 18 ++--
7 files changed, 127 insertions(+), 144 deletions(-)
Following out buildbot policy, the change will need to be reverted if is not fixed in 24 hours.
----------
nosy: +pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45963>
_______________________________________
More information about the Python-bugs-list
mailing list