Skip to content

gh-94438: in frameobject's mark_stacks, add explicit case for CACHE opcodes which leaves the stack unchanged #94586

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

Closed
wants to merge 1 commit into from

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jul 5, 2022

This doesn't change behaviour, but it makes the code more explicit so it doesn't look like we forgot about CACHE opcodes.

The previous behaviour relied on stack_effect returning 0 for CACHE in the default case of the switch.

…ACHE opcodes which leaves the stack unchanged
@iritkatriel
Copy link
Member Author

This is wrong, as Dennis explained.

@iritkatriel iritkatriel deleted the mark_stack_CACHE branch September 29, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants