Skip to content

Commit 8f79a60

Browse files
committed
Don't increment branch cache (bitmask) in INSTRUMENTED_LINE
1 parent f0c7fb0 commit 8f79a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
818818
if (next_instr != here) {
819819
DISPATCH();
820820
}
821-
if (_PyOpcode_Caches[original_opcode]) {
821+
if (_PyOpcode_Caches[original_opcode] && !OPCODE_HAS_JUMP(original_opcode)) {
822822
_PyBinaryOpCache *cache = (_PyBinaryOpCache *)(next_instr+1);
823823
/* Prevent the underlying instruction from specializing
824824
* and overwriting the instrumentation. */

0 commit comments

Comments
 (0)