mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +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
|
@ -4269,7 +4269,7 @@ unicode_decode_call_errorhandler_wchar(
|
|||
if (*exceptionObject == NULL)
|
||||
goto onError;
|
||||
|
||||
restuple = _PyObject_CallArg1(*errorHandler, *exceptionObject);
|
||||
restuple = PyObject_CallFunctionObjArgs(*errorHandler, *exceptionObject, NULL);
|
||||
if (restuple == NULL)
|
||||
goto onError;
|
||||
if (!PyTuple_Check(restuple)) {
|
||||
|
@ -4368,7 +4368,7 @@ unicode_decode_call_errorhandler_writer(
|
|||
if (*exceptionObject == NULL)
|
||||
goto onError;
|
||||
|
||||
restuple = _PyObject_CallArg1(*errorHandler, *exceptionObject);
|
||||
restuple = PyObject_CallFunctionObjArgs(*errorHandler, *exceptionObject, NULL);
|
||||
if (restuple == NULL)
|
||||
goto onError;
|
||||
if (!PyTuple_Check(restuple)) {
|
||||
|
@ -6649,7 +6649,8 @@ unicode_encode_call_errorhandler(const char *errors,
|
|||
if (*exceptionObject == NULL)
|
||||
return NULL;
|
||||
|
||||
restuple = _PyObject_CallArg1(*errorHandler, *exceptionObject);
|
||||
restuple = PyObject_CallFunctionObjArgs(
|
||||
*errorHandler, *exceptionObject, NULL);
|
||||
if (restuple == NULL)
|
||||
return NULL;
|
||||
if (!PyTuple_Check(restuple)) {
|
||||
|
@ -8643,7 +8644,8 @@ unicode_translate_call_errorhandler(const char *errors,
|
|||
if (*exceptionObject == NULL)
|
||||
return NULL;
|
||||
|
||||
restuple = _PyObject_CallArg1(*errorHandler, *exceptionObject);
|
||||
restuple = PyObject_CallFunctionObjArgs(
|
||||
*errorHandler, *exceptionObject, NULL);
|
||||
if (restuple == NULL)
|
||||
return NULL;
|
||||
if (!PyTuple_Check(restuple)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue