Marking algorithm for garbage collection using a rescan map
Abstract
A method for garbage collection, involving identifying a first object referenced by a second object, determining whether the address of the first object is lower than a pointer position, in response to determining that the address of the first object is lower than the pointer position, adding an identifier for the first object to a mark stack, determining whether a number of identifiers in the mark stack has reached a flush threshold, in response to determining that the number of identifiers in the mark stack has reached the flush threshold, setting a set of marks included in a mark bitmap to grey, setting a region field of a rescan map to indicate that a region of the mark bitmap includes any of the set of marks, and performing a rescan of the region based on the region field.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A non-transitory computer readable storage medium comprising a plurality of instructions for garbage collection, the plurality of instructions comprising functionality to: create a mark bitmap comprising a plurality of marks, wherein each of the plurality of marks corresponds to a memory location of a heap memory; create a rescan map comprising a plurality of region fields, wherein each of the plurality of region fields corresponds to a fixed-size contiguous region of the mark bitmap; identify a first data object referenced by a second data object, wherein the first data object and the second
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (3)
- Blackburn, S. M. et al.; "Immix: A Mark-Region Garbage Collector with Space Efficiency, Fast Collection, and Mutator Performance;" PLDI '08, Tucson, Arizona, Jun. 7-13, 2008, 11 pages.
- European Search Report issued in Application No. 09291000.9, dated Aug. 6, 2010, 7 pages.
- International Business Machines Corporation: "A Method for Treating Mark Stack Overflow Through Card Dirtying in Concurrent Garbage Collectors;" Research Disclosure, Mason Publications, Hampshire, GB, vol. 463, No. 212, Nov. 1, 2002, XP007131723 ISSN: 0374-4353, 2 pages.