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

gh-142913: fix `_testinternalcapi` build failure due to undefined JIT symbols by cocolato · Pull Request #143949 · python/cpython · GitHub

Repository navigation

gh-142913: fix _testinternalcapi build failure due to undefined JIT symbols - #143949

Closed
cocolato wants to merge 1 commit into
python:mainfrom
cocolato:fix_broken_test
Closed

cocolato wants to merge 1 commit into
python:mainfrom
cocolato:fix_broken_test

Conversation

cocolato commented Jan 17, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Root cause:

The fix in 949b5ec removed the Tier 2 interpreter loop from Modules/_testinternalcapi/interpreter.c, but test_cases.c.h is generated from Python/bytecodes.c and still contains the TRACE_RECORD and TRACE_END instructions which call:

  • _PyJit_translate_single_bytecode_to_trace()
  • _PyJit_TryInitializeTracing()
  • _PyJit_FinalizeTracing()

These functions are defined in Python/optimizer.c but are not exported (missing PyAPI_FUNC), causing link failures when building the shared library.

cocolato changed the title gh-142913: _testinternalcapi build failure due to undefined JIT symbols gh-142913: fix _testinternalcapi build failure due to undefined JIT symbols Jan 17, 2026
kumaraditya303 requested review from DinoV and mpage January 17, 2026 07:01
cocolato closed this Jan 17, 2026
cocolato deleted the fix_broken_test branch January 20, 2026 14:12
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