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

C11-style记忆的指称

A denotational account of C11-style memory

Ryan Kavanagh, Stephen Brookes

摘要:

我们介绍了一个指称语义框架共享内存并发程序在C11风格的内存模型。这种指称方法是基于“执行图”和公理化的技术的替代方案,并且它允许组合推理。我们的语义从跟踪(动作序列)推广到pomsets(动作的偏序):我们拥抱“真正的”并发,而不是跟踪和交织。我们建立在我们以前的工作,提供了一个指称语义,以TSO的技术。我们增加了对C11更广泛的内存排序的支持,例如,获取-释放和放松,并支持本地变量和各种同步原语,同时消除了大量的技术簿记。我们的方法有两个主要组成部分。首先,我们给程序的语法指导的指称方面的集pomsets的内存行动。然后,我们给出了一个种族检测执行解释的pomsets使用的足迹和当地的国家。

英文摘要:

We introduce a denotational semantic framework for shared-memory concurrent programs in a C11-style memory model. This denotational approach is an alternative to techniques based on "execution graphs" and axiomatizations, and it allows for compositional reasoning. Our semantics generalizes from traces (sequences of actions) to pomsets (partial orders of actions): instead of traces and interleaving, we embrace "true" concurrency. We build on techniques from our prior work that gives a denotational semantics to SPARC TSO. We add support for C11's wider range of memory orderings, e.g., acquire-release and relaxed, and support for local variables and various synchronization primitives, while eliminating significant amounts of technical bookkeeping. Our approach features two main components. We first give programs a syntax-directed denotation in terms of sets of pomsets of memory actions. We then give a race-detecting executional interpretation of pomsets using footprints and a local view of state.

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

↑