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 /Python/ceval.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 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index b615bd9..ca876e0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1756,7 +1756,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag) Py_DECREF(value); goto error; } - res = _PyObject_CallArg1(hook, value); + res = PyObject_CallFunctionObjArgs(hook, value, NULL); Py_DECREF(value); if (res == NULL) goto error; @@ -3062,7 +3062,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag) Py_DECREF(mgr); if (enter == NULL) goto error; - res = _PyObject_CallNoArg(enter); + res = PyObject_CallFunctionObjArgs(enter, NULL); Py_DECREF(enter); if (res == NULL) goto error; @@ -3096,7 +3096,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag) } SET_TOP(exit); Py_DECREF(mgr); - res = _PyObject_CallNoArg(enter); + res = PyObject_CallFunctionObjArgs(enter, NULL); Py_DECREF(enter); if (res == NULL) goto error; |