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.

    ENCODING METHOD AND DECODING METHOD FOR FUNCTION CALLING CONTEXT, AND APPARATUS

    公开(公告)号:US20230409373A1

    公开(公告)日:2023-12-21

    申请号:US18237607

    申请日:2023-08-24

    CPC classification number: G06F9/461 G06F9/3016

    Abstract: This application provides an encoding method and a decoding method for a function calling context, and an apparatus. The encoding method includes: obtaining encoding values corresponding to creation relationships between a plurality of threads in program code, and obtaining, based on the encoding values corresponding to the creation relationships between the plurality of threads and calling context information of a target function, an encoding result of a context of a thread to which the target function belongs. According to the method in this application, the encoding result of the context of the thread to which the target function belongs can be obtained, so that different calling contexts of functions in a plurality of threads can be distinguished. This helps improve analysis efficiency and analysis precision.

Patent Agency Ranking