Skip to content

Commit 7e28ae5

Browse files
gh-142913: Export JIT functions for _testinternalcapi (#143958)
* Export JIT functions for _testinternalcapi * Add testinternalcapi to paths to run JIT CI on
1 parent 7d151e5 commit 7e28ae5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/jit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- 'Python/optimizer*.c'
88
- 'Python/executor_cases.c.h'
99
- 'Python/optimizer_cases.c.h'
10+
- '**_testinternalcapi**'
1011
- '!Python/perf_jit_trampoline.c'
1112
- '!**/*.md'
1213
- '!**/*.ini'
@@ -17,6 +18,7 @@ on:
1718
- 'Python/optimizer*.c'
1819
- 'Python/executor_cases.c.h'
1920
- 'Python/optimizer_cases.c.h'
21+
- '**_testinternalcapi**'
2022
- '!Python/perf_jit_trampoline.c'
2123
- '!**/*.md'
2224
- '!**/*.ini'

Include/internal/pycore_optimizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,15 @@ PyAPI_FUNC(int) _PyDumpExecutors(FILE *out);
225225
PyAPI_FUNC(void) _Py_ClearExecutorDeletionList(PyInterpreterState *interp);
226226
#endif
227227

228-
int _PyJit_translate_single_bytecode_to_trace(PyThreadState *tstate, _PyInterpreterFrame *frame, _Py_CODEUNIT *next_instr, int stop_tracing_opcode);
228+
PyAPI_FUNC(int) _PyJit_translate_single_bytecode_to_trace(PyThreadState *tstate, _PyInterpreterFrame *frame, _Py_CODEUNIT *next_instr, int stop_tracing_opcode);
229229

230230
PyAPI_FUNC(int)
231231
_PyJit_TryInitializeTracing(PyThreadState *tstate, _PyInterpreterFrame *frame,
232232
_Py_CODEUNIT *curr_instr, _Py_CODEUNIT *start_instr,
233233
_Py_CODEUNIT *close_loop_instr, int curr_stackdepth, int chain_depth, _PyExitData *exit,
234234
int oparg, _PyExecutorObject *current_executor);
235235

236-
void _PyJit_FinalizeTracing(PyThreadState *tstate, int err);
236+
PyAPI_FUNC(void) _PyJit_FinalizeTracing(PyThreadState *tstate, int err);
237237
void _PyJit_TracerFree(_PyThreadStateImpl *_tstate);
238238

239239
void _PyJit_Tracer_InvalidateDependency(PyThreadState *old_tstate, void *obj);

0 commit comments

Comments
 (0)