Compositional Reasoning for Non-multicopy Atomic Architectures
Compositional Reasoning for Non-multicopy Atomic Architectures
复制标题
非多拷贝原子架构的组合推理
DOI:
--
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Graeme Smith
中科院分区:
文献类型:
--
作者:
Nicholas Coughlin;Kirsten Winter;Graeme Smith
Rely/guarantee reasoning provides a compositional approach to reasoning about concurrent programs. However, such reasoning traditionally assumes a sequentially consistent memory model and hence is unsound on modern hardware in the presence of data races. In this article, we present a rely/guarantee-based approach for non-multicopy atomic weak memory models, i.e., where a thread’s stores are not simultaneously propagated to all other threads and hence are not observable by other threads at the same time. Such memory models include those of the earlier versions of the ARM processor as well as the POWER processor. This article builds on our approach to compositional reasoning for multicopy atomic architectures, i.e., where a thread’s stores are simultaneously propagated to all other threads. In that context, an operational semantics can be based on thread-local instruction reordering. We exploit this to provide an efficient compositional proof technique in which weak memory behaviour can be shown to preserve rely/guarantee reasoning on a sequentially consistent memory model. To achieve this, we introduce a side-condition, reordering interference freedom on each thread, reducing the complexity of weak memory to checks over pairs of reorderable instructions. In this article, we extend our approach to non-multicopy atomic weak memory models. We utilise the idea of reordering interference freedom between parallel components. This by itself would break compositionality but serves as a vehicle to derive a refined compatibility check between rely and guarantee conditions, which takes into account the effects of propagations of stores that are only partial, i.e., not covering all threads. All aspects of our approach have been encoded and proved sound in Isabelle/HOL.
登录
查看更多内容
DOI:
10.1145/2837614.2837615
发表时间:
2016-01
期刊:
Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
影响因子:
--
作者:
Shaked Flur;Kathryn E. Gray;Christopher Pulte;Susmit Sarkar;A. Sezgin;Luc Maranget;Will Deacon;Peter Sewell
通讯作者:
Shaked Flur;Kathryn E. Gray;Christopher Pulte;Susmit Sarkar;A. Sezgin;Luc Maranget;Will Deacon;Peter Sewell
影响因子:
--
作者:
Sarkar S
通讯作者:
Sarkar S
DOI:
10.48550/arxiv.2108.01418
发表时间:
2021
期刊:
--
影响因子:
--
作者:
Wright D
通讯作者:
Wright D
DOI:
10.1145/2429069.2429099
发表时间:
2013
期刊:
--
影响因子:
--
作者:
Batty M
通讯作者:
Batty M