Back to Search Start Over

Lock-free parallel and concurrent garbage collection by mark&sweep

Authors :
Gao, H.
Groote, J.F.
Hesselink, W.H.
Source :
Science of Computer Programming. Feb2007, Vol. 64 Issue 3, p341-374. 34p.
Publication Year :
2007

Abstract

Abstract: This paper presents a lock-free algorithm for mark&sweep garbage collection (GC) in a realistic model using synchronization primitives load-linked/store-conditional (LL/SC) or compare-and-swap (CAS) offered by machine architectures. The algorithm is concurrent in the sense that garbage collection can run concurrently with the application (the mutator threads). It is parallel in that garbage collection itself may employ several concurrent collector threads. We first design and prove an algorithm with a coarse grain of atomicity and subsequently apply the reduction method developed and verified in [H. Gao, W.H. Hesselink, A formal reduction for lock-free parallel algorithms, in: Proceedings of the 16th Conference on Computer Aided Verification, CAV, July 2004] to implement the high-level atomic steps by means of the low-level primitives. Even the correctness of the coarse grain algorithm is very delicate due to the presence of concurrent mutator and collector threads. We have verified it therefore by means of the interactive theorem prover PVS. [Copyright &y& Elsevier]

Details

Language :
English
ISSN :
01676423
Volume :
64
Issue :
3
Database :
Academic Search Index
Journal :
Science of Computer Programming
Publication Type :
Academic Journal
Accession number :
23279411
Full Text :
https://doi.org/10.1016/j.scico.2006.10.001