Skip to content

Commit

Permalink
Don't actually enable the JIT
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher committed Sep 22, 2024
1 parent 6e06e01 commit edc643a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,16 +1299,16 @@ init_interp_main(PyThreadState *tstate)
// PYTHON_JIT=0|1 overrides the default
enabled = *env != '0';
}
if (enabled) {
PyObject *opt = _PyOptimizer_NewUOpOptimizer();
if (opt == NULL) {
return _PyStatus_ERR("can't initialize optimizer");
}
if (_Py_SetTier2Optimizer((_PyOptimizerObject *)opt)) {
return _PyStatus_ERR("can't install optimizer");
}
Py_DECREF(opt);
}
// if (enabled) {
// PyObject *opt = _PyOptimizer_NewUOpOptimizer();
// if (opt == NULL) {
// return _PyStatus_ERR("can't initialize optimizer");
// }
// if (_Py_SetTier2Optimizer((_PyOptimizerObject *)opt)) {
// return _PyStatus_ERR("can't install optimizer");
// }
// Py_DECREF(opt);
// }
}
#endif

Expand Down

0 comments on commit edc643a

Please sign in to comment.