mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-141367: Use CALL_LIST_APPEND instruction only for lists, not for list subclasses (GH-141398)
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
This commit is contained in:
parent
f26ed455d5
commit
1281be1caf
7 changed files with 44 additions and 20 deletions
4
Python/executor_cases.c.h
generated
4
Python/executor_cases.c.h
generated
|
|
@ -6037,10 +6037,6 @@
|
|||
callable = stack_pointer[-3];
|
||||
assert(oparg == 1);
|
||||
PyObject *self_o = PyStackRef_AsPyObjectBorrow(self);
|
||||
if (!PyList_CheckExact(self_o)) {
|
||||
UOP_STAT_INC(uopcode, miss);
|
||||
JUMP_TO_JUMP_TARGET();
|
||||
}
|
||||
if (!LOCK_OBJECT(self_o)) {
|
||||
UOP_STAT_INC(uopcode, miss);
|
||||
JUMP_TO_JUMP_TARGET();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue