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/ceval_macros.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/ceval_macros.h')
-rw-r--r-- | Python/ceval_macros.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index b024b51..22992aa 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -347,16 +347,12 @@ do { \ // for an exception handler, displaying the traceback, and so on #define INSTRUMENTED_JUMP(src, dest, event) \ do { \ - if (tstate->tracing) {\ - next_instr = dest; \ - } else { \ - _PyFrame_SetStackPointer(frame, stack_pointer); \ - next_instr = _Py_call_instrumentation_jump(tstate, event, frame, src, dest); \ - stack_pointer = _PyFrame_GetStackPointer(frame); \ - if (next_instr == NULL) { \ - next_instr = (dest)+1; \ - goto error; \ - } \ + _PyFrame_SetStackPointer(frame, stack_pointer); \ + next_instr = _Py_call_instrumentation_jump(tstate, event, frame, src, dest); \ + stack_pointer = _PyFrame_GetStackPointer(frame); \ + if (next_instr == NULL) { \ + next_instr = (dest)+1; \ + goto error; \ } \ } while (0); |