Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iritkatriel opened this issue Dec 18, 2024 · 0 comments
Open

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

iritkatriel opened this issue Dec 18, 2024 · 0 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@iritkatriel
Copy link
Member

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

@iritkatriel iritkatriel added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

1 participant