-
公开(公告)号:US20230289187A1
公开(公告)日:2023-09-14
申请号:US18320039
申请日:2023-05-18
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Di YU , Yandong LV , Rutao ZHANG
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.
-
公开(公告)号:US20240320141A1
公开(公告)日:2024-09-26
申请号:US18737196
申请日:2024-06-07
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Rutao ZHANG , Di YU , Kai HOU
IPC: G06F12/02
CPC classification number: G06F12/023 , G06F2212/251
Abstract: The present disclosure relates to data processing methods, computer devices, and non-transitory computer-readable storage media. In an example method, at least one processor obtains an instruction sequence of an application program, identifies an execution sequence of read/write instructions in the instruction sequence based on the instruction sequence, and executes the read/write instructions based on the identified execution sequence.
-
公开(公告)号:US20230409373A1
公开(公告)日:2023-12-21
申请号:US18237607
申请日:2023-08-24
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Qing ZHOU , Rutao ZHANG
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.
-
-