System and method for garbage collection with ambiguous roots
Abstract
In a computer system, a dynamic memory allocation and recovery system and method, sometimes referred to as a garbage collection system and method, provides a heap of storage space for storing program objects generated by a task. The heap is divided into pages whose size is independent of physical page sizes used by the computer system. Pages are denoted an unallocated or allocated for storing program objects. A root stroage area stores information called hints regarding program objects stored in the heap. The hints can include ambiguous pointers which may or may not point to program objects stored in the heap. Garbage collection is performed by promoting and retaining all pages in the heap which are referenced by hints, and by copying into previously unallocated pages all other accessible program objects in the heap. All pointers to the copied program objects are replaced with pointers to the new copies of those program objects. As a result, all program objects located in pages pointed to by ambiguous pointers are left in their original position, and only the pointers to the copied program objects are replaced with pointers to the new copies of the program objects. After garbage co
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 118.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A garbage collection method for recovering unused memory in a heap of dynamically allocated storage, the steps of the method comprising: dividing a heap of storage into a multiplicity of pages; labelling as allocated pages each page in said heap allocated for storing program objects, and labelling as unallocated pages all other pages of the heap; identifying a root set of hints which point directly and indirectly to all of the accessible program objects stored in said heap, said program objects storing additional hints pointing to other ones of said program objects; said hints including un
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 118 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (5)
- Jacques Cohen, "Garbage Collection of Linked Data Structures", ACM Computing Surveys, vol. 13(3):341-367, 9/1981.
- Jacques Cohen, Garbage Collection of Linked Data Structures , ACM Computing Surveys, vol. 13(3):341 367, 9/1981.
- P. Rovner, "On Adding Garbage Collection and Runtime Types to a Strongly-Typed, Statically-Checked, Concurrent Language", Xerox Palo Alto Research Center Publication number CSL-84-7, Jul, 1985.
- P. Rovner, On Adding Garbage Collection and Runtime Types to a Strongly Typed, Statically Checked, Concurrent Language , Xerox Palo Alto Research Center Publication number CSL 84 7, Jul, 1985.
- T. McEntee, "Overview of Garbage Collection in Symbolic Computing", LISP Pointers, vol. 1(3):8-16, Aug. 1987.