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

GH-144179: Add value recording to JIT tracing front-end by markshannon · Pull Request #144303 · python/cpython · GitHub

/ cpython Public

GH-144179: Add value recording to JIT tracing front-end - #144303

Merged
markshannon merged 5 commits into
python:mainfrom
markshannon:add-value-recording-to-jit-frontend
Feb 2, 2026
Merged

GH-144179: Add value recording to JIT tracing front-end#144303
markshannon merged 5 commits into
python:mainfrom
markshannon:add-value-recording-to-jit-frontend

Conversation

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

Copy link
Copy Markdown
Member

First step toward cleaning up front-end tracking of objects.
This adds recording, but doesn't use for optimization, to keep the PRs to manageable sizes.

Demonstrates that it works, doesn't leak memory.

Also removes IP_OFFSET_OF, as that broke when adding new uops.

markshannon added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Jan 28, 2026

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @markshannon for commit 515a570 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F144303%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Jan 28, 2026

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 one nit, feel free to merge after.

@@ -0,0 +1,115 @@
// This file is generated by Tools/cases_generator/record_function_generator.py

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

Should this file be mark as autogenerated in the github CI?

markshannon merged commit 141fd8b into python:main Feb 2, 2026
95 of 96 checks passed
Comment thread Python/optimizer.c
assert(strncmp(_PyOpcode_uop_name[buffer[pc].opcode], _PyOpcode_uop_name[opcode], strlen(_PyOpcode_uop_name[opcode])) == 0);
}
else if (_PyUop_Flags[opcode] & HAS_RECORDS_VALUE_FLAG) {
Py_XDECREF((PyObject *)(uintptr_t)buffer[pc].operand0);

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

@markshannon

We should move this to the finalize tracing path. Otherwise, this doesn't handle the error paths

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.

3 participants


Back | FazBrowse Home | New Git URL