Patent ID: 8099724

Claim:
A machine implemented method, comprising: storing code for a plurality of calling methods into storage, wherein the code for each of the plurality of calling methods comprises an instruction that directly branches execution to a target method based on a parameter specified by the instruction; prior to a state change of the target method, recording an association between the target method and the instruction of each of the plurality of calling methods that directly branches the execution to the target method; in response to the state change from a current state to a new state of the target method, using the association to identify the instruction of each of the plurality of calling methods as a specific instruction to be patched in response to the state change, wherein the current state is an uncompiled state and the new state is a compiled state in which the target method has been compiled into executable code; patching the parameter of each of the plurality of calling methods to indicate an updated address for facilitating direct branching to the target method in the new state; and executing the instruction of at least one of the plurality of calling methods using a value of the parameter.