Computer method and system for conservative-stack and generational heap garbage collection
Abstract
A method and system for conservative-stack and generational garbage collection for a computer memory is provided. In a preferred embodiment, the computer memory includes a stack and a heap. The heap comprises a plurality of objects each of which is identified as new or old. During run time, a list of old objects that contain pointers to new objects is maintained. During garbage collection time, each new object that is accessible through an old object in the list is marked as accessible. The stack contains a plurality of stack entry that may be pointers to new objects. During garbage collection time, each stack entry is checked to see if it could point to a new object. Each new object that a stack entry could point to is marked as accessible and each new object that is accessible through the marked objects is also marked as accessible. During memory compaction, the new objects that are not marked as accessible are reclaimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 93.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a computer system for marking data objects in a computer memory, each object being identified by a pointer, the memory including a stack and a heap, the heap having a plurality of old objects and a plurality of new objects, the memory including a list of pointers to a plurality of old objects that contain a pointer to a new object, the stack having stack entries, each stack entry identifiable as being definitely not a pointer or being possibly a pointer, the method comprising the steps of: identifying whether each stack entry is definitely not a pointer or possibly a pointer; for
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 93 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Alan Demers et al., "Combining Generational and Conservative Garbage Collection: Framework and Implementations," Seventeenth Annual ACM Symposium on Principles of Programming Conference The Association of Computing Machinery, Palo Alto, California, 1990, pp. 261-269.
- Alan Demers et al., Combining Generational and Conservative Garbage Collection: Framework and Implementations, Seventeenth Annual ACM Symposium on Principles of Programming Conference The Association of Computing Machinery , Palo Alto, California, 1990, pp. 261 269.
- David Ungar and Frank Jackson, "Tenuring Policies for Generation-Based Storage Reclamation," OOPSLA '88 Conference Proceedings, The Association for Computing Machinery, San Diego, California, Sep. 25-30, 1988, pp. 1-17.
- David Ungar and Frank Jackson, Tenuring Policies for Generation Based Storage Reclamation, OOPSLA 88 Conference Proceedings , The Association for Computing Machinery, San Diego, California, Sep. 25 30, 1988, pp. 1 17.
- David Ungar, "Generation Scavenging: A Non-disruptive High Performance Storage Reclamation Algorithm," 1984 ACM Conference Proceedings, Pittsburgh, Pennsylvania, Apr. 1984, pp. 83-136.