diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-04 21:59:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-04 21:59:09 (GMT) |
commit | de4ae3d4869e88dda8bfbad24880cb398160a7a0 (patch) | |
tree | b8c42842a31f408c9fe09993e19fba49d60b2dcf /Modules/_struct.c | |
parent | c8d03187ff85326ab8b24af06f8a4e391365f42a (diff) | |
download | cpython-de4ae3d4869e88dda8bfbad24880cb398160a7a0.zip cpython-de4ae3d4869e88dda8bfbad24880cb398160a7a0.tar.gz cpython-de4ae3d4869e88dda8bfbad24880cb398160a7a0.tar.bz2 |
Backed out changeset b9c9691c72c5
Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like
_PyObject_CallArg1() uses more stack memory than
PyObject_CallFunctionObjArgs().
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r-- | Modules/_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c index 4ef5c89..1d7a935 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -2046,7 +2046,7 @@ cache_struct(PyObject *fmt) return s_object; } - s_object = _PyObject_CallArg1((PyObject *)(&PyStructType), fmt); + s_object = PyObject_CallFunctionObjArgs((PyObject *)(&PyStructType), fmt, NULL); if (s_object != NULL) { if (PyDict_Size(cache) >= MAXCACHE) PyDict_Clear(cache); |