mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -951,7 +951,7 @@ static PyObject * math_ceil(PyObject *self, PyObject *number) {
|
|||
return NULL;
|
||||
return math_1_to_int(number, ceil, 0);
|
||||
}
|
||||
result = _PyObject_CallNoArg(method);
|
||||
result = PyObject_CallFunctionObjArgs(method, NULL);
|
||||
Py_DECREF(method);
|
||||
return result;
|
||||
}
|
||||
|
|
@ -991,7 +991,7 @@ static PyObject * math_floor(PyObject *self, PyObject *number) {
|
|||
return NULL;
|
||||
return math_1_to_int(number, floor, 0);
|
||||
}
|
||||
result = _PyObject_CallNoArg(method);
|
||||
result = PyObject_CallFunctionObjArgs(method, NULL);
|
||||
Py_DECREF(method);
|
||||
return result;
|
||||
}
|
||||
|
|
@ -1542,7 +1542,7 @@ math_trunc(PyObject *self, PyObject *number)
|
|||
Py_TYPE(number)->tp_name);
|
||||
return NULL;
|
||||
}
|
||||
result = _PyObject_CallNoArg(trunc);
|
||||
result = PyObject_CallFunctionObjArgs(trunc, NULL);
|
||||
Py_DECREF(trunc);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue