Skip to content

Commit cdbbbe3

Browse files
minor fixups
1 parent a1ca3a7 commit cdbbbe3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ finalize_modules(PyThreadState *tstate)
17211721
PyInterpreterState *interp = tstate->interp;
17221722

17231723
// Invalidate all executors and turn off JIT:
1724-
interp->jit = 0;
1724+
FT_ATOMIC_STORE_UINT8(interp->jit, 0);
17251725
interp->compiling = false;
17261726
#ifdef _Py_TIER2
17271727
_Py_Executors_InvalidateAll(interp, 0);

Tools/jit/_optimizers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,7 @@ def run(self) -> None:
562562
for _ in range(4):
563563
self._invert_hot_branches()
564564
self._remove_redundant_jumps()
565-
# FIXME (gh-141594): Breaks LLVM on FT builds
566-
# self._remove_unreachable()
565+
self._remove_unreachable()
567566
self._fixup_external_labels()
568567
self._fixup_constants()
569568
self.path.write_text(self._body())

0 commit comments

Comments
 (0)