Skip to content

Commit e1f1b30

Browse files
fix JIT builds
1 parent f78e8c8 commit e1f1b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ sys_activate_stack_trampoline_impl(PyObject *module, const char *backend)
23652365
{
23662366
#ifdef PY_HAVE_PERF_TRAMPOLINE
23672367
#ifdef _Py_JIT
2368-
if (_PyInterpreterState_GET()->jit) {
2368+
if (((_PyThreadStateImpl *)_PyThreadState_GET())->jit_executor_state.jit) {
23692369
PyErr_SetString(PyExc_ValueError, "Cannot activate the perf trampoline if the JIT is active");
23702370
return NULL;
23712371
}

0 commit comments

Comments
 (0)