| CPC G06F 9/30192 (2013.01) [G06F 8/458 (2013.01); G06F 9/3004 (2013.01); G06F 9/30087 (2013.01); G06F 9/38 (2013.01); G06F 9/3834 (2013.01); G06F 9/3856 (2023.08); G06F 8/41 (2013.01); G06F 9/3851 (2013.01)] | 20 Claims |

|
1. A method, wherein the method comprises:
determining a read/write instruction set in to-be-repaired code, wherein the read/write instruction set comprises a read instruction or a write instruction in the to-be-repaired code, and wherein an instruction in the read/write instruction set is used for memory access;
classifying instructions in the read/write instruction set to determine a target instruction; and
inserting a memory barrier instruction between a previous read/write instruction of the target instruction and the target instruction.
|