Pomsets with preconditions: a simple model of relaxed memory
Radha Jagadeesan, Alan Jeffrey, James Riely
摘要
Relaxed memory models must simultaneously achieve efficient implementability and thread-compositional reasoning. Is that why they have become so complicated? We argue that the answer is no: It is possible to achieve these goals by combining an idea from the 60s (preconditions) with an idea from the 80s (pomsets), at least for X64 and ARMv8. We show that the resulting model (1) supports compositional reasoning for temporal safety properties, (2) supports all expected sequential compiler optimizations, (3) satisfies the DRF-SC criterion, and (4) compiles to X64 and ARMv8 microprocessors without requiring extra fences on relaxed accesses.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Sequential reasoning for optimizing compilers under weak memory concurrency 引用了 Making weak memory models fair
- Implementing and verifying release-acquire transactional memory in C11 引用了 Owicki-Gries Reasoning for C11 Programs with Relaxed Dependencies
- Implementing and verifying release-acquire transactional memory in C11 引用了 Making weak memory models fair
- Making weak memory models fair 引用了 Repairing and mechanising the JavaScript relaxed memory model
- The leaky semicolon: compositional semantic dependencies for relaxed-memory concurrency 引用了 Repairing and mechanising the JavaScript relaxed memory model
引用它的顶会 Paper10
- Making weak memory models fairOri Lahav, Egor Namakonov, Jonas Oberhauser, Anton Podkopaev 等OOPSLA 2021 · 21 次引用
- The leaky semicolon: compositional semantic dependencies for relaxed-memory concurrencyAlan Jeffrey, James Riely, Mark Batty, Simon Cooksey 等POPL 2022 · 21 次引用
- Owicki-Gries Reasoning for C11 Programs with Relaxed DependenciesDaniel Wright, Mark Batty, Brijesh DongolFM 2021 · 14 次引用
- Sequential reasoning for optimizing compilers under weak memory concurrencyMinki Cho, Sung-Hwan Lee, Dongjae Lee, Chung-Kil Hur 等PLDI 2022 · 11 次引用
- Implementing and verifying release-acquire transactional memory in C11Sadegh Dalvandi, Brijesh DongolOOPSLA 2022 · 6 次引用
它引用的 Paper2
相关 Paper
- Modular data-race-freedom guarantees in the promising semanticsMinki Cho, Sung-Hwan Lee, Chung-Kil Hur, Ori LahavPLDI 2021 · 14 次引用
- Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory ModelsNicholas Coughlin, Kirsten Winter, Graeme SmithFM 2021 · 16 次引用
- An Axiomatic Basis for Computer Programming on the Relaxed Arm-A Architecture: The AxSL LogicAngus Hammond, Zongyuan Liu, Thibaut Pérami, Peter Sewell 等POPL 2024 · 8 次引用
- Taming x86-TSO persistencyArtem Khyzha, Ori LahavPOPL 2021 · 26 次引用
- Extending Intel-x86 consistency and persistency: formalising the semantics of Intel-x86 memory types and non-temporal storesAzalea Raad, Luc Maranget, Viktor VafeiadisPOPL 2022 · 24 次引用
