使用锁不变式证明逻辑原子性
Proving Logical Atomicity using Lock Invariants
AI总结:
本文比较原子性锁规范与早期基于锁不变式的规范,证明后者仍可验证细粒度锁数据结构的逻辑原子性,但证明更复杂,并在 VST 中应用于 C 实现。
摘要:
逻辑原子性已被广泛接受为并发分离逻辑中数据结构的一种规范格式。尽管无锁和基于锁的数据结构都已依据逻辑原子性规范得到验证,但后者中的大多数也从锁的原子性规范开始。在本文中,我们将这种方法与一种基于更早期的、基于锁不变式的锁规范的方法进行比较。我们表明,使用这些较旧的规范,仍然可以为采用细粒度锁的数据结构证明逻辑原子性规范,但其证明比使用原子性锁规范的证明要复杂得多。我们的证明技术在 Verified Software Toolchain 中实现,该工具链依赖较旧的锁规范来完成其可靠性证明,并被应用于基于锁的并发数据结构的 C 实现。
英文摘要:
Logical atomicity has been widely accepted as a specification format for data structures in concurrent separation logic. While both lock-free and lock-based data structures have been verified against logically atomic specifications, most of the latter start with atomic specifications for the locks as well. In this paper, we compare this approach with one based on older lock-invariant-based specifications for locks. We show that we can still prove logically atomic specifications for data structures with fine-grained locking using these older specs, but the proofs are significantly more complicated than those that use atomic lock specifications. Our proof technique is implemented in the Verified Software Toolchain, which relies on older lock specifications for its soundness proof, and applied to C implementations of lock-based concurrent data structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。