From 0658f1b683cacae67cb70059f3ac2a093a8a9435 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:12:12 +0000 Subject: [PATCH] remove CALL_LIST_APPEND fix --- Python/specialize.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; -- 2.47.3