Skip to content

Commit e08c434

Browse files
comment out object locks
1 parent 2f39aa8 commit e08c434

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tools/jit/template.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ do { \
118118
#define ASSERT_WITHIN_STACK_BOUNDS(F, L) (void)0
119119
#endif
120120

121+
// For now, the FT JIT only supports single-threaded code.
122+
#undef LOCK_OBJECT
123+
#undef UNLOCK_OBJECT
124+
#define LOCK_OBJECT(op) (1)
125+
#define UNLOCK_OBJECT(op) ((void)0)
126+
121127
__attribute__((preserve_none)) _Py_CODEUNIT *
122128
_JIT_ENTRY(
123129
_PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate,

0 commit comments

Comments
 (0)