Skip to content

Commit e8c06d6

Browse files
authored
gh-144712: Export _Py_jit_entry symbol via PyAPI_DATA (#145840)
1 parent 1e03154 commit e8c06d6

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

Include/internal/pycore_ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ _Py_CODEUNIT *_PyTier2Interpreter(
131131
);
132132
#endif
133133

134-
extern _PyJitEntryFuncPtr _Py_jit_entry;
134+
PyAPI_DATA(_PyJitEntryFuncPtr) _Py_jit_entry;
135135

136136
extern PyObject*
137137
_PyEval_Vector(PyThreadState *tstate,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``_testinternalcapi`` import failure due to missing ``_Py_jit_entry`` symbol when built with :option:`--enable-experimental-jit`. Patch by Shamil Abdulaev.

Modules/_testinternalcapi/interpreter.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ stop_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame)
2929
}
3030
#endif
3131

32-
_PyJitEntryFuncPtr _Py_jit_entry;
33-
3432
#if _Py_TAIL_CALL_INTERP
3533
#include "test_targets.h"
3634
#include "test_cases.c.h"

0 commit comments

Comments
 (0)