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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user