Skip to content

Commit 00ae7b5

Browse files
enable GIL on JIT
1 parent e08c434 commit 00ae7b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tools/jit/template.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ do { \
124124
#define LOCK_OBJECT(op) (1)
125125
#define UNLOCK_OBJECT(op) ((void)0)
126126

127+
#ifdef Py_GIL_DISABLED
128+
#undef Py_GIL_DISABLED
129+
#endif
130+
127131
__attribute__((preserve_none)) _Py_CODEUNIT *
128132
_JIT_ENTRY(
129133
_PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate,

0 commit comments

Comments
 (0)