Skip to content

Commit af72c76

Browse files
committed
Disable all of Tier 2 only if PYTHON_UOPS_OPTIMIZE=0
1 parent 66b76d5 commit af72c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/optimizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,8 @@ uop_optimize(
10081008
return err;
10091009
}
10101010
OPT_STAT_INC(traces_created);
1011-
char *uop_optimize = Py_GETENV("PYTHONUOPSOPTIMIZE");
1012-
if (uop_optimize == NULL || *uop_optimize > '0') {
1011+
char *env_var = Py_GETENV("PYTHON_UOPS_OPTIMIZE");
1012+
if (env_var == NULL || *env_var == '\0' || *env_var > '0') {
10131013
err = _Py_uop_analyze_and_optimize(frame, buffer,
10141014
UOP_MAX_TRACE_LENGTH,
10151015
curr_stackentries, &dependencies);

0 commit comments

Comments
 (0)