mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Backed out changeset b9c9691c72c5
Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs().
This commit is contained in:
parent
c8d03187ff
commit
de4ae3d486
33 changed files with 83 additions and 71 deletions
|
|
@ -902,7 +902,7 @@ path_converter(PyObject *o, void *p)
|
|||
goto error_exit;
|
||||
}
|
||||
|
||||
o = to_cleanup = _PyObject_CallNoArg(func);
|
||||
o = to_cleanup = PyObject_CallFunctionObjArgs(func, NULL);
|
||||
Py_DECREF(func);
|
||||
if (NULL == o) {
|
||||
goto error_exit;
|
||||
|
|
@ -12041,7 +12041,7 @@ PyOS_FSPath(PyObject *path)
|
|||
Py_TYPE(path)->tp_name);
|
||||
}
|
||||
|
||||
path_repr = _PyObject_CallNoArg(func);
|
||||
path_repr = PyObject_CallFunctionObjArgs(func, NULL);
|
||||
Py_DECREF(func);
|
||||
if (NULL == path_repr) {
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue