From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:12:12 +0000 (+0000) Subject: remove CALL_LIST_APPEND fix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0658f1b683cacae67cb70059f3ac2a093a8a9435;p=thirdparty%2FPython%2Fcpython.git remove CALL_LIST_APPEND fix --- diff --git a/Python/specialize.c b/Python/specialize.c index 5b44432b8b72..a1c5dedd6156 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2041,12 +2041,8 @@ specialize_method_descriptor(PyMethodDescrObject *descr, _Py_CODEUNIT *instr, bool pop = (next.op.code == POP_TOP); int oparg = instr->op.arg; if ((PyObject *)descr == list_append && oparg == 1 && pop) { - PyThreadState *tstate = PyThreadState_GET(); - PyObject *self = PyStackRef_AsPyObjectBorrow(tstate->current_frame->stackpointer[-2]); - if (PyList_CheckExact(self)) { - specialize(instr, CALL_LIST_APPEND); - return 0; - } + specialize(instr, CALL_LIST_APPEND); + return 0; } specialize(instr, CALL_METHOD_DESCRIPTOR_O); return 0;