Method and system of memory management using stack walking
First Claim
1. A method of managing memory in a computer system, the computer system having at least one stack with a plurality of frames and a thread associated with the stack, the method comprising:
- identifying compiled code to be deleted, the compiled code having a range of addresses;
examining one of the plurality of frames of the stack, each frame having a return address;
determining whether the return address of the one of the plurality of frames is in the range of addresses of the compiled code; and
altering the contents of the one of the plurality of frames if the return address of the one of the plurality of the frames is in the range of addresses of the compiled code.
9 Assignments
0 Petitions
Accused Products
Abstract
A method and 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.
-
Citations
17 Claims
-
1. A method of managing memory in a computer system, the computer system having at least one stack with a plurality of frames and a thread associated with the stack, the method comprising:
-
identifying compiled code to be deleted, the compiled code having a range of addresses;
examining one of the plurality of frames of the stack, each frame having a return address;
determining whether the return address of the one of the plurality of frames is in the range of addresses of the compiled code; and
altering the contents of the one of the plurality of frames if the return address of the one of the plurality of the frames is in the range of addresses of the compiled code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer system comprising:
-
a control device;
a deleter coupled to the control device;
an interpreter coupled to the control device;
a compiler coupled to the control device; and
a stack walker coupled to the control device, the stack walker having access to glue code. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A method of managing memory in a computer system, the computer system having a stack with a plurality of frames, each frame having a return address, the method comprising:
-
accessing the stack with a first thread one frame at a time;
accessing the stack with a second thread one frame at a time;
pausing the first thread only for the time it takes the second thread to access the current frame of the first thread;
identifying compiled code to be deleted, the compiled code having a range of addresses;
examining one of the plurality of frames of the stack;
determining whether the return address of the one of the plurality of frames is in the range of addresses of the compiled code; and
altering the contents of the one of the plurality of frames if the return address of the one of the plurality of the frames is in the range of addresses of the compiled code.
-
Specification