mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
[3.13] gh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGS (GH-145015)
This commit is contained in:
parent
702d085783
commit
85f8e76705
4 changed files with 9 additions and 6 deletions
|
|
@ -3241,9 +3241,11 @@ dummy_func(
|
|||
macro(CALL_BOUND_METHOD_GENERAL) =
|
||||
unused/1 + // Skip over the counter
|
||||
_CHECK_PEP_523 +
|
||||
// gh-145008: We must check recursion before expanding method,
|
||||
// otherwise we may leave the stack in an inconsistent state in 3.13.
|
||||
_CHECK_RECURSION_REMAINING +
|
||||
_CHECK_METHOD_VERSION +
|
||||
_EXPAND_METHOD +
|
||||
_CHECK_RECURSION_REMAINING +
|
||||
_PY_FRAME_GENERAL +
|
||||
_SAVE_RETURN_OFFSET +
|
||||
_PUSH_FRAME;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue