Method and system for incremental stack scanning
First Claim
1. A method of automatic memory management, comprising the steps of (a) executing a stack scan phase by scanning each of a plurality of memory stacks, (b) replacing, when starting the scan of a call frame, the continuation for reactivating that frame with an unwind routine which will, if necessary, complete the scan of the call frame and only then reactivate the frame, and (c) performing the scan incrementally.
4 Assignments
0 Petitions
Accused Products
Abstract
An incremental garbage collector and method of incremental garbage collection useful for systems with real-time requirements, including a method for incrementally scanning multiple program stacks in units of individual stack locations. Methods and system allow the garbage collector to be preempted by the system and then return to garbage collection without rescanning any portion of a partially completed stack.
183 Citations
5 Claims
- 1. A method of automatic memory management, comprising the steps of (a) executing a stack scan phase by scanning each of a plurality of memory stacks, (b) replacing, when starting the scan of a call frame, the continuation for reactivating that frame with an unwind routine which will, if necessary, complete the scan of the call frame and only then reactivate the frame, and (c) performing the scan incrementally.
Specification