SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72125 0 13 Python

bpo-44032: Move data stack to thread from FrameObject. (GH-26076)

* Remove 'zombie' frames. We won't need them once we are allocating fixed-size frames.

* Add co_nlocalplus field to code object to avoid recomputing size of locals + frees + cells.

* Move locals, cells and freevars out of frame object into separate memory buffer.

* Use per-threadstate allocated memory chunks for local variables.

* Move globals and builtins from frame object to per-thread stack.

* Move (slow) locals frame object to per-thread stack.

* Move internal frame functions to internal header.
M
Mark Shannon committed
b11a951f16f0603d98de24fee5c023df83ea552c
Parent: be4dd7f
Committed by GitHub <noreply@github.com> on 5/21/2021, 9:57:35 AM