mirror of
https://github.com/python/cpython.git
synced 2025-08-26 19:55:24 +00:00
gh-132011: Fix crash on invalid CALL_LIST_APPEND
deoptimization (#132018)
Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
42e3a8410b
commit
c0661df42a
5 changed files with 32 additions and 4 deletions
|
@ -4235,7 +4235,7 @@ dummy_func(
|
|||
|
||||
PyInterpreterState *interp = tstate->interp;
|
||||
DEOPT_IF(callable_o != interp->callable_cache.list_append);
|
||||
assert(self_o != NULL);
|
||||
DEOPT_IF(self_o == NULL);
|
||||
DEOPT_IF(!PyList_Check(self_o));
|
||||
DEOPT_IF(!LOCK_OBJECT(self_o));
|
||||
STAT_INC(CALL, hit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue