diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-15 11:40:53 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-15 11:40:53 (GMT) |
commit | bc08ab4598ef05705fd1172f8be8f47307af96c1 (patch) | |
tree | 36d362e23b74d8516d8c5f9001b3966e1c440626 /Python | |
parent | d1e35dd9ee50adf2c69445893ce4e5576b983091 (diff) | |
download | cpython-bc08ab4598ef05705fd1172f8be8f47307af96c1.zip cpython-bc08ab4598ef05705fd1172f8be8f47307af96c1.tar.gz cpython-bc08ab4598ef05705fd1172f8be8f47307af96c1.tar.bz2 |
Add _PY_FASTCALL_SMALL_STACK constant
Issue #28870: Add a new _PY_FASTCALL_SMALL_STACK constant, size of "small
stacks" allocated on the C stack to pass positional arguments to
_PyObject_FastCall().
_PyObject_Call_Prepend() now uses a small stack of 5 arguments (40 bytes)
instead of 8 (64 bytes), since it is modified to use _PY_FASTCALL_SMALL_STACK.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5e1f562..292a7bc 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1186,7 +1186,7 @@ map_traverse(mapobject *lz, visitproc visit, void *arg) static PyObject * map_next(mapobject *lz) { - PyObject *small_stack[5]; + PyObject *small_stack[_PY_FASTCALL_SMALL_STACK]; PyObject **stack; Py_ssize_t niters, nargs, i; PyObject *result = NULL; |