arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1710.04839cs.PLcs.DC
收藏

x86、Power、ARM和C++中事务和弱内存的语义

The Semantics of Transactions and Weak Memory in x86, Power, ARM, and C++

Nathan Chong, Tyler Sorensen, John Wickerson

摘要:

弱内存模型为并发程序提供了复杂的、以系统为中心的语义,而事务内存(transactional memory,TM)提供了更简单的、以程序员为中心的语义。两者都已经被详细研究过了,但是它们的组合语义还没有被很好地理解。这是有问题的,因为广泛使用的架构和语言,如x86,Power和C++都支持TM,并且都有弱内存模型。我们的工作旨在澄清弱记忆和TM之间的相互作用,通过扩展现有的公理弱记忆模型(x86,电源,ARMv8和C++)与TM的新规则。我们的正式模型由自动化工具支持,该工具支持(1)针对现有实现对我们的模型进行验证的测试合成,以及(2)与TM相关的转换的模型检查,例如锁省略和将C++事务编译为硬件。一个关键的发现是,ARM Research目前正在考虑的对ARMv8的TM扩展与锁省略不兼容,而不会牺牲可移植性或性能。

英文摘要:

Weak memory models provide a complex, system-centric semantics for concurrent programs, while transactional memory (TM) provides a simpler, programmer-centric semantics. Both have been studied in detail, but their combined semantics is not well understood. This is problematic because such widely-used architectures and languages as x86, Power, and C++ all support TM, and all have weak memory models. Our work aims to clarify the interplay between weak memory and TM by extending existing axiomatic weak memory models (x86, Power, ARMv8, and C++) with new rules for TM. Our formal models are backed by automated tooling that enables (1) the synthesis of tests for validating our models against existing implementations and (2) the model-checking of TM-related transformations, such as lock elision and compiling C++ transactions to hardware. A key finding is that a proposed TM extension to ARMv8 currently being considered within ARM Research is incompatible with lock elision without sacrificing portability or performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑