File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ de_instrument_per_instruction(PyCodeObject *code, int i)
666
666
int original_opcode = code -> _co_monitoring -> per_instruction_opcodes [i ];
667
667
CHECK (original_opcode != 0 );
668
668
CHECK (original_opcode == _PyOpcode_Deopt [original_opcode ]);
669
- * opcode_ptr = original_opcode ;
669
+ FT_ATOMIC_STORE_UINT8_RELAXED ( * opcode_ptr , original_opcode ) ;
670
670
if (_PyOpcode_Caches [original_opcode ]) {
671
671
instr [1 ].counter = adaptive_counter_warmup ();
672
672
}
@@ -717,7 +717,7 @@ instrument_line(PyCodeObject *code, int i)
717
717
_PyCoLineInstrumentationData * lines = & code -> _co_monitoring -> lines [i ];
718
718
lines -> original_opcode = _PyOpcode_Deopt [opcode ];
719
719
CHECK (lines -> original_opcode > 0 );
720
- * opcode_ptr = INSTRUMENTED_LINE ;
720
+ FT_ATOMIC_STORE_UINT8_RELAXED ( * opcode_ptr , INSTRUMENTED_LINE ) ;
721
721
}
722
722
723
723
static void
@@ -746,7 +746,7 @@ instrument_per_instruction(PyCodeObject *code, int i)
746
746
code -> _co_monitoring -> per_instruction_opcodes [i ] = _PyOpcode_Deopt [opcode ];
747
747
}
748
748
assert (code -> _co_monitoring -> per_instruction_opcodes [i ] > 0 );
749
- * opcode_ptr = INSTRUMENTED_INSTRUCTION ;
749
+ FT_ATOMIC_STORE_UINT8_RELAXED ( * opcode_ptr , INSTRUMENTED_INSTRUCTION ) ;
750
750
}
751
751
752
752
static void
You can’t perform that action at this time.
0 commit comments