Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug in the JIT optimizer where class attribute loads were not invalidated after type mutation.
2 changes: 2 additions & 0 deletions Python/optimizer_bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ dummy_func(void) {
}
else {
sym_set_const(owner, type);
PyType_Watch(TYPE_WATCHER_ID, type);
Copy link
Copy Markdown
Contributor

@kumaraditya303 kumaraditya303 Apr 12, 2026

Choose a reason for hiding this comment

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

You don't need to add type watcher if type is immutable.

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.

Ref #148383

_Py_BloomFilter_Add(dependencies, type);
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Python/optimizer_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading