diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2024-11-20 16:11:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 16:11:25 (GMT) |
commit | 48c50ff1a22f086c302c52a70eb9912d76c66f91 (patch) | |
tree | 0d0412c0688a33a504d86e51b8931d95801b836d /Lib/test/support | |
parent | addb225f3823b03774cddacce35214dd471bec46 (diff) | |
download | cpython-48c50ff1a22f086c302c52a70eb9912d76c66f91.zip cpython-48c50ff1a22f086c302c52a70eb9912d76c66f91.tar.gz cpython-48c50ff1a22f086c302c52a70eb9912d76c66f91.tar.bz2 |
GH-126892: Reset warmup counters when JIT compiling code (GH-126893)
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/strace_helper.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/support/strace_helper.py b/Lib/test/support/strace_helper.py index 90d4b5b..7fb4581 100644 --- a/Lib/test/support/strace_helper.py +++ b/Lib/test/support/strace_helper.py @@ -91,7 +91,10 @@ def strace_python(code, strace_flags, check=True): res, cmd_line = run_python_until_end( "-c", textwrap.dedent(code), - __run_using_command=[_strace_binary] + strace_flags) + __run_using_command=[_strace_binary] + strace_flags, + # Don't want to trace our JIT's own mmap and mprotect calls: + PYTHON_JIT="0", + ) except OSError as err: return _make_error("Caught OSError", err) |