diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2022-11-16 16:09:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 16:09:34 (GMT) |
commit | a06fb519af097159e2d132d75253da19b5588fc6 (patch) | |
tree | 61eb21d5885f900aa150b7c1107ca5936dd4b3d8 /Python | |
parent | 0a208d5e24981bb3f80dc5932a358136ceb60a10 (diff) | |
download | cpython-a06fb519af097159e2d132d75253da19b5588fc6.zip cpython-a06fb519af097159e2d132d75253da19b5588fc6.tar.gz cpython-a06fb519af097159e2d132d75253da19b5588fc6.tar.bz2 |
[3.11] GH-99460: Emscripten trampolines on optimized METH_O and METH_NOARGS code paths (gh-99461) (#99514)
Manual backport of GH-99461.
Diffstat (limited to 'Python')
-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 b4ebf0c..8cbe838 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -5025,7 +5025,7 @@ handle_eval_breaker: goto error; } PyObject *arg = TOP(); - PyObject *res = cfunc(PyCFunction_GET_SELF(callable), arg); + PyObject *res = _PyCFunction_TrampolineCall(cfunc, PyCFunction_GET_SELF(callable), arg); _Py_LeaveRecursiveCallTstate(tstate); assert((res != NULL) ^ (_PyErr_Occurred(tstate) != NULL)); @@ -5226,7 +5226,7 @@ handle_eval_breaker: if (_Py_EnterRecursiveCallTstate(tstate, " while calling a Python object")) { goto error; } - PyObject *res = cfunc(self, arg); + PyObject *res = _PyCFunction_TrampolineCall(cfunc, self, arg); _Py_LeaveRecursiveCallTstate(tstate); assert((res != NULL) ^ (_PyErr_Occurred(tstate) != NULL)); Py_DECREF(self); @@ -5298,7 +5298,7 @@ handle_eval_breaker: if (_Py_EnterRecursiveCallTstate(tstate, " while calling a Python object")) { goto error; } - PyObject *res = cfunc(self, NULL); + PyObject *res = _PyCFunction_TrampolineCall(cfunc, self, NULL); _Py_LeaveRecursiveCallTstate(tstate); assert((res != NULL) ^ (_PyErr_Occurred(tstate) != NULL)); Py_DECREF(self); |