Code inspection method under weak memory ordering architecture and corresponding device
AssigneeHuawei Technologies Co., Ltd.
InventorsYuzhong Wen, Jonas Oberhauser, Diogo Behrens, Ming Fu
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsYuzhong Wen, Jonas Oberhauser, Diogo Behrens, Ming Fu
Estimating the term…
This application discloses a code inspection method, including: obtaining first source code and test code, where the first source code includes a blocking mark, the first source code corresponds to a plurality of threads, the plurality of threads have at least one shared memory; generating, based on the first source code and the condition indicated by the test code, a plurality of execution flows under the weak memory ordering architecture for the plurality of threads that operate a same shared memory, where a busy-wait loop exists in a target execution flow that includes the blocking mark and that is in the plurality of execution flows; and determining the busy-wait loop in the target execution flow as an infinite loop if a read operation executed by a target thread in one iteration of the busy-wait loop cannot reference an unreferenced write operation.
A code inspection method under a weak memory ordering architecture, comprising:
A computer device, comprising a processor, a memory, and a computer-readable storage medium storing a computer program, wherein the processor is coupled to the computer-readable storage medium, and when the computer program is executed by the processor, the processor is caused to perform operations:
Dependencies are inferred from the claim text.