Skip to content

Code generator should reject escaping calls in DEOPT_IF/EXIT_IF #128073

@iritkatriel

Description

@iritkatriel

I had a

EXIT_IF(escaping_call(), OP);

and it produced:

                _PyFrame_SetStackPointer(frame, stack_pointer);
                DEOPT_IF(escaping_call(), OP);
                stack_pointer = _PyFrame_GetStackPointer(frame);

and then the frame's stack pointer got messed up when deopt happened. It was very upsetting.

@markshannon

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions