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

gh-125610: Fix STORE_ATTR_INSTANCE_VALUE specialization check #125612

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Oct 16, 2024

The STORE_ATTR_INSTANCE_VALUE opcode doesn't support objects with non-NULL managed dictionaries, so don't specialize to that op in that case.

The `STORE_ATTR_INSTANCE_VALUE` opcode doesn't support objects with
non-NULL managed dictionaries, so don't specialize to that op in that case.
Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Should save a few repeated deopts.

I've one suggestion

Python/specialize.c Outdated Show resolved Hide resolved
@markshannon
Copy link
Member

markshannon commented Oct 24, 2024

The stats show the expected reduction in misses for STORE_ATTR_INSTANCE_VALUE

Co-authored-by: Mark Shannon <[email protected]>
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