Patent attributes
The embodiments of the present invention provide a hot-update method and apparatus. For example, the method can include: obtaining, in response to receiving a hot-update instruction by a running program, an update assembly and difference descriptions for describing differences between the update assembly and an existing assembly of the running program, wherein, identical metadata in the update assembly and existing assembly have identical identifiers; loading the update assembly into memory, and finding, in the update assembly, functions which have been modified with respect to the existing assembly according to the difference descriptions; performing just-in-time compilation to the modified functions thus found to obtain update native code; and running the update native code in place of corresponding existing native code of the modified functions when the existing native code is required to be run.