diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2024-03-01 06:46:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 06:46:33 (GMT) |
commit | 7895a61168aad4565a1d953104c9ec620e7c588f (patch) | |
tree | 8234320f8978961688f8abc4baf1f6ad7faf5c2d /Python/executor_cases.c.h | |
parent | 339c8e1c13adc299a0e2e49c93067e7817692380 (diff) | |
download | cpython-7895a61168aad4565a1d953104c9ec620e7c588f.zip cpython-7895a61168aad4565a1d953104c9ec620e7c588f.tar.gz cpython-7895a61168aad4565a1d953104c9ec620e7c588f.tar.bz2 |
gh-116098: Revert "gh-107674: Improve performance of `sys.settrace` (GH-114986)" (GH-116178)
Revert "gh-107674: Improve performance of `sys.settrace` (GH-114986)"
This reverts commit 0a61e237009bf6b833e13ac635299ee063377699.
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index e84c332..56ee938 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -20,7 +20,7 @@ uintptr_t eval_breaker = _Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker); uintptr_t version = _PyFrame_GetCode(frame)->_co_instrumentation_version; assert((version & _PY_EVAL_EVENTS_MASK) == 0); - if (eval_breaker != version && tstate->tracing == 0) goto deoptimize; + if (eval_breaker != version) goto deoptimize; break; } |