Hot patch processing method and device, electronic equipment and storage medium
CN122431702APending Publication Date: 2026-07-21PHYTIUM TECH CO LTD
View PDF 0 Cites 0 Cited by
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- PHYTIUM TECH CO LTD
- Filing Date
- 2026-05-14
- Publication Date
- 2026-07-21
Smart Images

Figure CN122431702A_ABST
Abstract
The application provides a hot patch processing method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining and running a hot patch program, the hot patch program being used for replacing an old function with a new function; when the hot patch program is running, triggering each thread in an application corresponding to the hot patch program to pause; obtaining an execution state of each thread for the old function, the execution state being used for indicating an instruction currently executed by the thread when the thread executes the old function; according to the execution state of each thread for the old function, triggering each thread to execute atomic execution processing, so that the execution of the first N instructions in the old function by each thread satisfies atomic execution; and replacing the first N instructions in the old function with a jump instruction, the jump instruction being used for jumping to the new function to trigger the execution of the new function. The method can effectively avoid the problem that the old instructions before the hot patch and the new instructions after the hot patch are mixed and executed when the function hot patch is implemented by using a register, and can prevent the running error of the instructions.
Need to check novelty before this filing date? Find Prior Art