Skip to content

gh-142276: Watch attribute loads when promoting JIT constants - #142303

Merged
Fidget-Spinner merged 5 commits into
python:mainfrom
Fidget-Spinner:watch_attribute_loads
Dec 8, 2025
Merged

gh-142276: Watch attribute loads when promoting JIT constants#142303
Fidget-Spinner merged 5 commits into
python:mainfrom
Fidget-Spinner:watch_attribute_loads

Conversation

@Fidget-Spinner

@Fidget-SpinnerFidget-Spinner commented Dec 5, 2025

Copy link
Copy Markdown
Member

Fidget-Spinnerand others added 3 commits December 5, 2025 21:57
…e-142276.H4j8hP.rst
Co-authored-by: Savannah Ostrowski <savannah@python.org>
@Fidget-Spinner

Copy link
Copy Markdown
MemberAuthor

@YuanchengJiang do I have your permission to use your reproducer for the test case please?

@YuanchengJiang

Copy link
Copy Markdown

@Fidget-Spinner Thanks for addressing the issue. Feel free to use my reproducers ;)

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

Thanks for fixing this.

Could we simplify test, by changing the attribute between calls to the optimized function, and avoid needing threads? LGTM, either way.

@Fidget-Spinner
Fidget-Spinner merged commit 97f0a1f into python:mainDec 8, 2025
68 checks passed
@Fidget-Spinner
Fidget-Spinner deleted the watch_attribute_loads branch December 8, 2025 18:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Fidget-Spinner@YuanchengJiang@savannahostrowski@markshannon