US 11,928,460 B2
Dynamic update of a computer program in memory
Jin Hong Fu, Beijing (CN); Bao Zhang, Beijing (CN); Shi Chong Ma, Beijing (CN); He Huang, Beijing (CN); Naijie Li, Beijing (CN); and Jia Yu, Beijing (CN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by INTERNATIONAL BUSINESS MACHINES CORPORATION, Armonk, NY (US)
Filed on Apr. 20, 2022, as Appl. No. 17/659,864.
Prior Publication US 2023/0342142 A1, Oct. 26, 2023
Int. Cl. G06F 9/44 (2018.01); G06F 8/658 (2018.01); G06F 9/30 (2018.01); G06F 12/02 (2006.01); G06F 12/0804 (2016.01)
CPC G06F 8/658 (2018.02) [G06F 9/3009 (2013.01); G06F 12/0238 (2013.01); G06F 12/0804 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method comprising:
obtaining, by one or more processors, incremental information specifying an incremental update to at least one section of at least one target function in a computer program;
identifying, by the one or more processors, the at least one target function to be updated from the computer program based on the incremental information;
generating, by the one or more processors, at least one updated copy of the at least one target function by updating the at least one section of the at least one target function based on the incremental information; and
updating, by the one or more processors, the computer program based on the at least one updated copy of the at least one target function while the computer program is running, wherein updating the computer program comprises:
obtaining, by the one or more processors, an active call chain in an execution task where the computer program is running, the active call chain indicating at least one target function of the computer program running in the execution task;
determining, by the one or more processors, a time slot when the at least one target function is not running in the execution task based on the active call chain; and
updating, by the one or more processors, the computer program within the determined time slot.