A method and a system of memory management using stack walking. The method
of managing memory in a computer system includes identifying compiled code
to be deleted, examining the return addresses of the frames in the stack,
determining whether any of the return address of the frames are in the
range of addresses of the compiled code to be deleted, and if they are,
then altering the contents of the frame determined to have a return
address in the range of addresses of the compiled code to be deleted.