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

gh-144549: Fix tail calling interpreter on Windows for FT by Fidget-Spinner · Pull Request #144550 · python/cpython · GitHub

Repository navigation

gh-144549: Fix tail calling interpreter on Windows for FT - #144550

Merged
Fidget-Spinner merged 10 commits into
python:mainfrom
Fidget-Spinner:ft_tc_windows
Feb 6, 2026
Merged

Fidget-Spinner merged 10 commits into
python:mainfrom
Fidget-Spinner:ft_tc_windows

Conversation

Fidget-Spinner commented Feb 6, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

I just moved the body of _LOAD_ATTR into an external function.

The problem was that we had a local variable that has its address taken and "escaped" in the tail calling function. By moving this to an external function, the tail calling function no longer has escaping variables.

Also benefits #141794 due to smaller JIT stencil sizes.

savannahostrowski 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

LGTM - I do have more meta comments about existing patterns in the workflow file though:

  • I'm wondering if x86_64-pc-windows-msvc/msvc-free-threading would be more consistent with the triple/compiler pattern.
  • It might be a bit more robust to use a matrix variable here like free-threading: true? If we add more FT variants later, this could get a bit hairy.

Not a problem to solve in this PR since both of these are leveraging existing patterns but maybe some futureproofing we should consider.

Copy link
Copy Markdown
Member Author

LGTM - I do have more meta comments about existing patterns in the workflow file though:

  • I'm wondering if x86_64-pc-windows-msvc/msvc-free-threading would be more consistent with the triple/compiler pattern.
  • It might be a bit more robust to use a matrix variable here like free-threading: true? If we add more FT variants later, this could get a bit hairy.

Not a problem to solve in this PR since both of these are leveraging existing patterns but maybe some futureproofing we should consider.

Thanks for the review. Yeah I agree we need to refactor the CI files. Unfortunately, I'm too bad at this to refactor the file. Even editing the current one to make it work was already a struggle for me. Let's do this in a follow-up PR or let a new contributor take it.

Fidget-Spinner merged commit 895e837 into python:main Feb 6, 2026
76 checks passed

Copy link
Copy Markdown
Member

Yep - agreed. Opened #144552. I'll work on this as a follow up.

Fidget-Spinner deleted the ft_tc_windows branch February 8, 2026 16:45
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL