Skip to content

gh-125610: Fix STORE_ATTR_INSTANCE_VALUE specialization check - #125612

Merged
colesbury merged 3 commits into
python:mainfrom
colesbury:gh-125610-STORE_ATTR_INSTANCE_VALUE
Dec 6, 2024
Merged

colesbury merged 3 commits into
python:mainfrom
colesbury:gh-125610-STORE_ATTR_INSTANCE_VALUE

Conversation

@colesbury

@colesbury colesbury commented Oct 16, 2024 •

Copy link
Copy Markdown
Contributor

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.

@markshannon markshannon left a comment

Copy link
Copy Markdown
Member

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

Comment thread Python/specialize.c Outdated
@markshannon

markshannon commented Oct 24, 2024 •

Copy link
Copy Markdown
Member

The stats show the expected reduction in misses for STORE_ATTR_INSTANCE_VALUE

Co-authored-by: Mark Shannon <mark@hotpy.org>
@colesbury
colesbury requested a review from markshannon October 24, 2024 13:20
@colesbury
colesbury merged commit a353455 into python:main Dec 6, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@colesbury
colesbury deleted the gh-125610-STORE_ATTR_INSTANCE_VALUE branch December 6, 2024 15:48
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 6, 2024
…pythonGH-125612)

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.
(cherry picked from commit a353455)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app

bedevere-app Bot commented Dec 6, 2024

Copy link
Copy Markdown

GH-127698 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Dec 6, 2024
colesbury added a commit that referenced this pull request Dec 6, 2024
GH-125612) (GH-127698)

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.
(cherry picked from commit a353455)

Co-authored-by: Sam Gross <colesbury@gmail.com>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…pythonGH-125612)

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.
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.

3 participants