arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1308.6810cs.LO
收藏

放牧猫-弱记忆的建模、模拟、测试和数据采掘

Herding Cats - Modelling, simulation, testing, and data-mining for weak memory

Jade Alglave, Luc Maranget, Michael Tautschnig

摘要:

我们提出了一个公理化的通用框架建模弱记忆。我们展示了如何实例化这个框架的SC,TSO,C++限制释放获取原子,和电源。对于Power,我们将我们的模型与之前的操作模型进行比较,我们发现了一个缺陷。为此,我们定义了一个操作模型,它与我们的公理模型等价。我们还提出了一个模型的ARM。我们对这个架构的测试揭示了一个行为,后来承认为ARM的错误,最近33个额外的异常。我们提供了一个新的模拟工具,称为羊群,它允许用户以简洁的方式指定他选择的模型。给定一个模型的规格说明,该工具就成为该模型的模拟器。该工具依赖于一个公理化的描述;这种选择使我们能够超越所有以前的模拟工具。此外,我们确认,验证时间大大提高,在有界模型检查的情况下。最后,我们把我们的模型的角度来看,根据经验数据,通过分析Debian Linux发行版的C和C++代码。我们介绍了我们的新分析工具,称为mole,它可以探索一段代码来找到它使用的弱内存习惯用法。

英文摘要:

We propose an axiomatic generic framework for modelling weak memory. We show how to instantiate this framework for SC, TSO, C++ restricted to release-acquire atomics, and Power. For Power, we compare our model to a preceding operational model in which we found a flaw. To do so, we define an operational model that we show equivalent to our axiomatic model. We also propose a model for ARM. Our testing on this architecture revealed a behaviour later acknowledged as a bug by ARM, and more recently 33 additional anomalies. We offer a new simulation tool, called herd, which allows the user to specify the model of his choice in a concise way. Given a specification of a model, the tool becomes a simulator for that model. The tool relies on an axiomatic description; this choice allows us to outperform all previous simulation tools. Additionally, we confirm that verification time is vastly improved, in the case of bounded model-checking. Finally, we put our models in perspective, in the light of empirical data obtained by analysing the C and C++ code of a Debian Linux distribution. We present our new analysis tool, called mole, which explores a piece of code to find the weak memory idioms that it uses.

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

↑