Download PDF

Principles of Programming Languages (POPL 2011), Date: 2011/01/26 - 2011/01/28, Location: Austin, TX, USA

Publication date: 2011-01-01
Pages: 271 - 282
ISSN: 978-1-4503-0490-0
Publisher: ACM; New York, NY, USA

Proceedings of the 38th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages (POPL 2011)

Author:

Jacobs, Bart
Piessens, Frank ; Sagiv, Mooly

Keywords:

concurrency, verification, Science & Technology, Technology, Physical Sciences, Computer Science, Software Engineering, Mathematics, Applied, Computer Science, Mathematics, fine-grained concurrency, separation logic

Abstract:

Compared to coarse-grained external synchronization of operations on data structures shared between concurrent threads, fine-grained, internal synchronization can offer stronger progress guarantees and better performance. However, fully specifying operations that perform internal synchronization modularly is a hard, open problem. The state of the art approaches, based on linearizability or on concurrent abstract predicates, have important limitations on the expressiveness of specifications. Linearizability does not support ownership transfer, and the concurrent abstract predicates-based specification approach requires hardcoding a particular usage protocol. In this paper, we propose a novel approach that lifts these limitations and enables fully general specification of fine-grained concurrent data structures. The basic idea is that clients pass the ghost code required to instantiate an operation's specification for a specific client scenario into the operation in a simple form of higher-order programming. We machine-checked the theory of the paper using the Coq proof assistant. Furthermore, we implemented the approach in our program verifier VeriFast and used it to verify two challenging fine-grained concurrent data structures from the literature: a multiple-compare-and-swap algorithm and a lock-coupling list.