https://github.com/python/cpython/commit/e8c06d65105111f42d0eb1458607635561027a16
commit: e8c06d65105111f42d0eb1458607635561027a16
branch: main
author: Shamil <[email protected]>
committer: diegorusso <[email protected]>
date: 2026-09-17T14:47:16+01:00
summary:

gh-144712: Export _Py_jit_entry symbol via PyAPI_DATA (#145840)

files:
A Misc/NEWS.d/next/Build/2026-03-11-17-23-39.gh-issue-144712.fix-jit-entry.rst
M Include/internal/pycore_ceval.h
M Modules/_testinternalcapi/interpreter.c

diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index 19b5473271fffb5..a0fea389b6502c0 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -131,7 +131,7 @@ _Py_CODEUNIT *_PyTier2Interpreter(
 );
 #endif
 
-extern _PyJitEntryFuncPtr _Py_jit_entry;
+PyAPI_DATA(_PyJitEntryFuncPtr) _Py_jit_entry;
 
 extern PyObject*
 _PyEval_Vector(PyThreadState *tstate,
diff --git 
a/Misc/NEWS.d/next/Build/2026-03-11-17-23-39.gh-issue-144712.fix-jit-entry.rst 
b/Misc/NEWS.d/next/Build/2026-03-11-17-23-39.gh-issue-144712.fix-jit-entry.rst
new file mode 100644
index 000000000000000..3473ce141dc03a7
--- /dev/null
+++ 
b/Misc/NEWS.d/next/Build/2026-03-11-17-23-39.gh-issue-144712.fix-jit-entry.rst
@@ -0,0 +1 @@
+Fix ``_testinternalcapi`` import failure due to missing ``_Py_jit_entry`` 
symbol when built with :option:`--enable-experimental-jit`. Patch by Shamil 
Abdulaev.
diff --git a/Modules/_testinternalcapi/interpreter.c 
b/Modules/_testinternalcapi/interpreter.c
index 237635c5f2bcdba..a67ecdc211bb343 100644
--- a/Modules/_testinternalcapi/interpreter.c
+++ b/Modules/_testinternalcapi/interpreter.c
@@ -29,8 +29,6 @@ stop_tracing_and_jit(PyThreadState *tstate, 
_PyInterpreterFrame *frame)
 }
 #endif
 
-_PyJitEntryFuncPtr _Py_jit_entry;
-
 #if _Py_TAIL_CALL_INTERP
 #include "test_targets.h"
 #include "test_cases.c.h"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to