Concurrent collection of cyclic garbage in reference counting systems
Abstract
The present invention provides techniques that allow concurrent collection of cyclic garbage on reference counting systems. In general, candidate objects are found that may be part of cyclic garbage. Each candidate object has a reference count. Two tests are performed to determine if concurrent operations have affected the reference counts of the candidate objects. If concurrent operations have not affected the reference counts, the candidate objects are collected as garbage. Additionally, during garbage collection, the decrements to reference counts are delayed so that increments occur before decrements and so that decrements are held a predetermined time before being applied. This prevents decrementing a reference count and collecting a cycle as garbage right before a reference is added to an object in the cycle.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for concurrent collection of cyclic garbage in a reference counting system, the method comprising the steps of: identifying candidate objects for garbage collection, wherein each candidate object is a root node of a cycle; storing candidate objects in a cycle buffer; computing external reference counts for each object in die cycle buffer; determining a previous reference count for each object in the cycle buffer; waiting until an epoch boundary; ensuring, for each cycle in the cycle buffer, that no new reference was added to an object in the cycle of objects in the cycle buffer and re
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (4)
- Gupta et al., Reliable Garbage Collection in Distributed Object Oriented Systems, IEEE Computer Software and Applications Conference, COMPSA 88. Proceedings., Twelth International, Oct. 5-7, 1988, p. 324-328.
- Jones et al., "Garbage Collection Algorithms for Automatic Dynamic Memory Management," John Wiley and Sons, Chapter 2, pp. 19-41 (1996).
- Xinfeng et al., Collecting Cyclic Garbage in Distributed Systems, Parallel Architectures, Algorithms, and Networks, 1997. (I-SPAN '97) Proceedings. Third International, Dec. 18-20, 1997, pp. 227-231.
- Ye et al., Collecting Cyclic Garbage in Distributed Systems, Parallel Architectures, Algorithms, and Networks, IEEE Proceed Third International Symposium on, Dec. 18-20, 1997, p. 227-231.