Non-volatile memory (NVM), also known as persistent memory, is an emerging paradigm for memory that preserves its contents even after power loss. NVM is widely expected to become ubiquitous, and hardware architectures are already providing support for NVM programming. This has stimulated interest in the design of novel concepts ensuring correctness of concurrent programming abstractions in the face of persistency and in the development of associated verification approaches. Software transactional memory (STM) is a key programming abstraction that supports concurrent access to shared state. In a fashion similar to linearizability as the correctness condition for concurrent data structures, there is an established notion of correctness for STMs known as opacity. We have recently proposed {\em durable opacity} as the natural extension of opacity to a setting with non-volatile memory. Together with this novel correctness condition, we designed a verification technique based on refinement. In this paper, we extend this work in two directions. First, we develop a durably opaque version of NOrec (no ownership records), an existing STM algorithm proven to be opaque. Second, we modularise our existing verification approach by separating the proof of durability of memory accesses from the proof of opacity. For NOrec, this allows us to re-use an existing opacity proof and complement it with a proof of the durability of accesses to shared state.
翻译:非挥发性记忆(NVM)也称为持久记忆,是一个新兴的记忆模式,即使在丧失权力后,也保留其内容。 NVM被广泛期待成为无处不在,硬件结构已经为NVM的编程提供支持。这激发了人们对设计新概念的兴趣,以确保在面对持续和开发相关核查方法时同时编程抽象的正确性。软件交易存储(STM)是一个关键的编程抽象,支持同时进入共享状态。在类似线性的方式中,它与同时数据结构的正确性条件相似,它为STMs(即不透明)提供了一个既定的正确性概念。我们最近建议将 & 持久不透明性作为不变化记忆环境的自然延伸。我们设计了一种基于改进的核查技术。在本文件中,我们将这项工作扩展为两个方向。首先,我们开发了一个可调和不透明版本的NOrec(无所有权记录),一个现有的STM算法已被证实为不透明。第二,我们用当前稳定性证据将我们现有的稳定性核查方法的模块化为我们现有的稳定性证据。