A method and system for reverting a process in an in-line instrumented state
to
an uninstrumented state. In one embodiment, the present invention modifies selected
text segment portions from the process to be uninstrumented. The present embodiment
then unmaps instrumented code space such that the instrumented code space is inaccessible
to the process. In this embodiment, the present invention also cleans a call stack
of the process by unwinding the call stack and resetting the storage locations
for return pointers from the instrumented code space to uninstrumented code space.