Skip to content

Commit f94e5b3

Browse files
committed
fix(walltime): disable PYTHON_PERF_JIT_SUPPORT on macOS
Enabling perf JIT support on macOS produces many unresolved addresses in stack traces. Force it off until we understand why.
1 parent 2e85913 commit f94e5b3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/executor/helpers/env.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ pub fn get_base_injected_env(
2424
("PYTHONHASHSEED".into(), "0".into()),
2525
(
2626
"PYTHON_PERF_JIT_SUPPORT".into(),
27-
if mode == RunnerMode::Walltime {
27+
// FIXME(COD-2645): Keep this disabled on macOS. Enabling it causes
28+
// many unresolved addresses on the stack when profiling with samply.
29+
if mode == RunnerMode::Walltime && !cfg!(target_os = "macos") {
2830
"1".into()
2931
} else {
3032
"0".into()

0 commit comments

Comments
 (0)