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

GH-137218: Fix unnecessary recompile of `Programs/_freeze_module` by savannahostrowski · Pull Request #139241 · python/cpython · GitHub

Repository navigation

GH-137218: Fix unnecessary recompile of Programs/_freeze_module - #139241

Merged
savannahostrowski merged 4 commits into
python:mainfrom
savannahostrowski:jit-duplicate-make
Oct 5, 2025
Merged

savannahostrowski merged 4 commits into
python:mainfrom
savannahostrowski:jit-duplicate-make

Conversation

savannahostrowski commented Sep 22, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

As @encukou pointed out, running make twice after merging #139170 resulted in an unnecessary recompile. I believe this is because of a redundant assignment of JIT_STENCILS_H.

Copy link
Copy Markdown
Member Author

!buildbot FreeBSD

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @savannahostrowski for commit 9e4b457 🤖

Results will be shown at:

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

The command will test the builders whose names match following regular expression: FreeBSD

The builders matched are:

  • AMD64 FreeBSD Refleaks PR
  • AMD64 FreeBSD15 PR
  • AMD64 FreeBSD PR
  • AMD64 FreeBSD14 PR

Copy link
Copy Markdown
Member Author

!buildbot FreeBSD

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @savannahostrowski for commit 70d5a56 🤖

Results will be shown at:

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

The command will test the builders whose names match following regular expression: FreeBSD

The builders matched are:

  • AMD64 FreeBSD Refleaks PR
  • AMD64 FreeBSD15 PR
  • AMD64 FreeBSD PR
  • AMD64 FreeBSD14 PR

Copy link
Copy Markdown
Member Author

@encukou Did you want to take a look at this one?

encukou commented Oct 1, 2025

Copy link
Copy Markdown
Member

Sorry, I missed the notification!

Unfortunately this doesn't solve the issue for me. In my config, REGEN_JIT_COMMAND is empty, so a jit_stencils.h is never created, but make attempts to create it and recreates its dependents (jit_stencils.h → Python/jit.o → Programs/_freeze_module → frozen modules).

savannahostrowski commented Oct 2, 2025 •
edited
Loading

Copy link
Copy Markdown
Member Author

Okay, I think that removing the literal jit_stencils.h dependency fixes this. This should also still work just fine to solve the original problem since the platform-specific stencils always exist alongside jit_stencils.h.

encukou 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

That did it. Thank you!

savannahostrowski merged commit 9964320 into python:main Oct 5, 2025
43 checks passed
danigm pushed a commit to openSUSE-Python/cpython that referenced this pull request Oct 7, 2025
savannahostrowski deleted the jit-duplicate-make branch December 4, 2025 22:58
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