[Python-checkins] cpython: Fix _PyObject_CallFunctionVa(), use the small stack

victor.stinner python-checkins at python.org
Thu Dec 15 06:55:07 EST 2016


https://hg.python.org/cpython/rev/bec846dd92e8
changeset: 105638:bec846dd92e8
parent: 105636:c4bcca326c0a
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Dec 15 12:36:50 2016 +0100
summary:
 Fix _PyObject_CallFunctionVa(), use the small stack
Issue #28915. Oops, I disabled the small stack to test both code paths. It's
now fixed.
files:
 Objects/abstract.c | 3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Objects/abstract.c b/Objects/abstract.c
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2524,8 +2524,7 @@
 va_list va, int is_size_t)
 {
 PyObject* small_stack[5];
- /*const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack);*/
- const Py_ssize_t small_stack_len = 0;
+ const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack);
 PyObject **stack;
 Py_ssize_t nargs, i;
 PyObject *result;
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /