FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-139109: Partial reworking of JIT data structures by markshannon · Pull Request #144105 · python/cpython · GitHub

/ cpython Public

GH-139109: Partial reworking of JIT data structures - #144105

Merged
markshannon merged 2 commits into
python:mainfrom
markshannon:refactor-tracing-structs
Jan 22, 2026
Merged

GH-139109: Partial reworking of JIT data structures#144105
markshannon merged 2 commits into
python:mainfrom
markshannon:refactor-tracing-structs

Conversation

markshannon commented Jan 21, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member
  • Halve size of buffers by reusing combined trace + optimizer buffers for TOS caching
  • Add simple buffer struct for more maintainable handling of buffers
  • Decouple JIT structs from threadstate struct
  • Ensure terminator is correctly added to trace, when optimizer gives up.

This is the first PR of a series to reducing coupling, particularly hidden coupling, in the tracer.
This is a bit of a mixed assortment of small changes to prepare for more significant changes later.
It also fixes a bug that was exposed by the refactoring.

* Halve size of buffers by reusing combined trace + optimizer buffers for TOS caching
* Add simple buffer struct for more maintainable handling of buffers
* Decouple JIT structs from thread state struct
* Ensure terminator is added to trace, when optimizer gives up

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Just 2 nits, please address them and merge.

Comment thread Include/internal/pycore_optimizer.h Outdated
Comment thread Include/internal/pycore_optimizer.h Outdated
markshannon merged commit d77aaa7 into python:main Jan 22, 2026
69 checks passed
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
…44105)

* Halve size of buffers by reusing combined trace + optimizer buffers for TOS caching
* Add simple buffer struct for more maintainable handling of buffers
* Decouple JIT structs from thread state struct
* Ensure terminator is added to trace, when optimizer gives up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL