Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 Include/internal/pycore_ceval.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 0 additions & 2 deletions 2 Modules/_testinternalcapi/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,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"
Expand Down
4 changes: 2 additions & 2 deletions 4 Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,9 +1337,9 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
}
#ifdef _Py_TIER2
#ifdef _Py_JIT
_PyJitEntryFuncPtr _Py_jit_entry = _PyJIT_Entry;
PyAPI_DATA(_PyJitEntryFuncPtr) _Py_jit_entry = _PyJIT_Entry;
#else
_PyJitEntryFuncPtr _Py_jit_entry = _PyTier2Interpreter;
PyAPI_DATA(_PyJitEntryFuncPtr) _Py_jit_entry = _PyTier2Interpreter;
#endif
#endif

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.