Encoding method and decoding method for function calling context, and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsQing ZHOU, Rutao ZHANG
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsQing ZHOU, Rutao ZHANG
Estimating the term…
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.
An encoding method for a function calling context, comprising:
A decoding method for a function calling context, comprising:
An encoding apparatus for a function calling context, comprising a processor and a memory, wherein the memory is configured to store program instructions, and the processor is configured to invoke the program instructions to perform the method comprising:
A decoding apparatus for a function calling context, comprising a processor and a memory, wherein the memory is configured to store program instructions, and the processor is configured to invoke the program instructions to perform operations comprising:
Dependencies are inferred from the claim text.