Skip to Main content Skip to Navigation
Conference papers

Reasoning about Java's reentrant locks

Abstract : This paper presents a verification technique for a concurrent Java-like language with reentrant locks. The verification technique is based on permission-accounting separation logic. As usual, each lock is associated with a resource invariant, when acquiring the lock the resources are obtained by the thread holding the lock, and when releasing the lock, the resources are released. To accommodate for reentrancy, the notion of lockset is introduced: a multiset of locks held by a thread. Keeping track of the lockset enables the logic to ensure that resources are not re-acquired upon reentrancy, thus avoiding the introduction of new resources in the system. To be able to express flexible locking policies, we combine the verification logic with value-parametrized classes. Verified programs satisfy the following properties: data race freedom, absence of null-dereferencing and partial correctness. The verification technique is illustrated on several examples, including a challenging lock-coupling algorithm.
Complete list of metadata

Cited literature [20 references]  Display  Hide  Download
Contributor : Clément Hurlin Connect in order to contact the contributor
Submitted on : Wednesday, September 10, 2008 - 11:49:35 AM
Last modification on : Friday, February 4, 2022 - 3:34:49 AM
Long-term archiving on: : Monday, October 8, 2012 - 1:03:07 PM


Files produced by the author(s)


  • HAL Id : inria-00320115, version 1



Christian Haack, Marieke Huisman, Clément Hurlin. Reasoning about Java's reentrant locks. The Sixth ASIAN Symposium on Programming Languages and Systems (APLAS 2008), Dec 2008, Bangalore, India. ⟨inria-00320115⟩



Record views


Files downloads