The present disclosure relates to a system and method for dynamically replacing
code. In one arrangement, the system and method pertain to intercepting original
program instructions during execution of the program, determining if an original
program instruction is to be replaced, and dynamically replacing the program instruction
with a replacement instruction if it is determined that the original program instruction
is to be replaced.