JUCS - Journal of Universal Computer Science 9(8): 813-828, doi: 10.3217/jucs-009-08-0813
Lazy Cyclic Reference Counting
expand article infoRafael Dueire Lins
‡ Universidade Federal de Pernambuco, Recife, Brazil
Open Access
Abstract
Reference counting is a widely employed memory management technique, in which garbage collection operations are interleaved with computation. Standard reference counting has the major drawback of being unable to handle cyclic structures. This paper presents an important optimisation to a recently published algorithm for cyclic reference counting. Proofs of the correctness of the original and lazy algorithms are provided, together with performance figures.
Keywords
garbage collection, reference counting, cycles, memory management