Permission-based separation logic for multi-threaded Java programs

A. Amighi, Christian Haack, Marieke Huisman, Clément Hurlin

    Research output: Contribution to journalArticleAcademicpeer-review

    28 Citations (Scopus)
    238 Downloads (Pure)

    Abstract

    This paper presents a program logic for reasoning about multithreaded Java-like programs with concurrency primitives such as dynamic thread creation, thread joining and reentrant object monitors. The logic is based on concurrent separation logic. It is the first detailed adaptation of concurrent separation logic to a multithreaded Java-like language. The program logic associates a unique static access permission with each heap location, ensuring exclusive write accesses and ruling out data races. Concurrent reads are supported through fractional permissions. Permissions can be transferred between threads upon thread starting, thread joining, initial monitor entrancies and final monitor exits. In order to distinguish between initial monitor entrancies and monitor reentrancies, auxiliary variables keep track of multisets of currently held monitors. Data abstraction and behavioral subtyping are facilitated through abstract predicates, which are also used to represent monitor invariants, preconditions for thread starting and postconditions for thread joining. Value-parametrized types allow to conveniently capture common strong global invariants, like static object ownership relations. The program logic is presented for a model language with Java-like classes and interfaces, the soundness of the program logic is proven, and a number of illustrative examples are presented.
    Original languageEnglish
    Pages (from-to)2
    Number of pages65
    JournalLogical methods in computer science
    Volume11
    Issue number1
    DOIs
    Publication statusPublished - Feb 2015

    Fingerprint

    Dive into the research topics of 'Permission-based separation logic for multi-threaded Java programs'. Together they form a unique fingerprint.

    Cite this