METHOD AND APPARATUS FOR RECTIFYING WEAK MEMORY ORDERING PROBLEM

    公开(公告)号:US20230289187A1

    公开(公告)日:2023-09-14

    申请号:US18320039

    申请日:2023-05-18

    CPC classification number: G06F9/30192 G06F9/3004 G06F9/3855

    Abstract: This application relates to the field of computer technologies, and discloses methods and apparatuses, for example, for rectifying a weak memory ordering problem. An example method includes: determining a read/write instruction set in to-be-repaired code; 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. The read/write instruction set includes a read instruction and/or a write instruction in the to-be-repaired code, and an instruction in the read/write instruction set is used for memory access.

Patent Agency Ranking