Patent ID: 6421679
Filing Date: 2002-07-16
Classification: G06F,Y10S

Abstract:
In a computer system having a program comprising one or more object code modules residing in memory, each of said modules having one or more entry points to which said program may make address reference, said program having one or more threads of execution, a method of replacing an original version of one of said modules with a replacement version of the module concurrently with the execution of said program on said system, said method comprising the steps of:determining, for each entry point within said original version of said module, a corresponding entry point within said replacement version of said module; effecting a suspension of execution of said program while one or more of said threads of execution are executing in said original version of said module after having branched to said original version of said module; during said suspension of execution of said program, replacing each address reference in said program to an entry point within said original version of said module with an address reference to the corresponding entry point within said replacement version of said module while preserving said original version of said module; and resuming execution of said program when each said address reference to an entry point within said original version of said module has been replaced with an address reference to the corresponding entry point within said replacement version of said module, whereby threads of execution that encounter a branching instruction to said module after execution is resumed branch to said replacement version of said module, while said one or more threads of execution that have branched to said original version of said module before said suspension of execution continue to execute in that version after execution is resumed.