The leaky semicolon: compositional semantic dependencies for relaxed-memory concurrency
Alan Jeffrey, James Riely, Mark Batty, Simon Cooksey, Ilya Kaysin, Anton Podkopaev
摘要
Program logics and semantics tell a pleasant story about sequential composition: when executing (𝑆 1 ; 𝑆 2 ), we first execute 𝑆 1 then 𝑆 2 . To improve performance, however, processors execute instructions out of order, and compilers reorder programs even more dramatically. By design, single-threaded systems cannot observe these reorderings; however, multiple-threaded systems can, making the story considerably less pleasant. A formal attempt to understand the resulting mess is known as a "relaxed memory model. " Prior models either fail to address sequential composition directly, or overly restrict processors and compilers, or permit nonsense thin-air behaviors which are unobservable in practice.
To support sequential composition while targeting modern hardware, we enrich the standard event-based approach with preconditions and families of predicate transformers. When calculating the meaning of (𝑆 1 ; 𝑆 2 ), the predicate transformer applied to the precondition of an event 𝑒 from 𝑆 2 is chosen based on the set of events in 𝑆 1 upon which 𝑒 depends. We apply this approach to two existing memory models.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic Choice 引用了 Modular data-race-freedom guarantees in the promising semantics
- Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic Choice 引用了 Promising 2.0: global optimizations in relaxed memory concurrency
- Model checking for a multi-execution memory model 引用了 Promising 2.0: global optimizations in relaxed memory concurrency
- Model checking for a multi-execution memory model 引用了 Pomsets with preconditions: a simple model of relaxed memory
- Relaxed Memory Concurrency Re-executed 引用了 Model checking for a multi-execution memory model
- Relaxed Memory Concurrency Re-executed 引用了 Promising 2.0: global optimizations in relaxed memory concurrency
- Relaxed Memory Concurrency Re-executed 引用了 Pomsets with preconditions: a simple model of relaxed memory
- Putting Weak Memory in Order via a Promising Intermediate Representation 引用了 Modular data-race-freedom guarantees in the promising semantics
- Putting Weak Memory in Order via a Promising Intermediate Representation 引用了 Promising 2.0: global optimizations in relaxed memory concurrency
- Putting Weak Memory in Order via a Promising Intermediate Representation 引用了 Pomsets with preconditions: a simple model of relaxed memory
- Compositional Semantics for Shared-Variable Concurrency 引用了 Pomsets with preconditions: a simple model of relaxed memory
- Pomsets with preconditions: a simple model of relaxed memory 引用了 Repairing and mechanising the JavaScript relaxed memory model
引用它的顶会 Paper5
- Putting Weak Memory in Order via a Promising Intermediate RepresentationSung-Hwan Lee, Minki Cho, Roy David Margalit, Chung-Kil Hur 等PLDI 2023 · 5 次引用
- Model checking for a multi-execution memory modelEvgenii Moiseenko, Michalis Kokologiannakis, Viktor VafeiadisOOPSLA 2022 · 4 次引用
- Relaxed Memory Concurrency Re-executedEvgenii Moiseenko, Matteo Meluzzi, Innokentii Meleshchenko, Ivan Kabashnyi 等POPL 2025 · 2 次引用
- Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic ChoiceJay Richards, Daniel Wright, Simon Cooksey, Mark BattyOOPSLA 2025 · 1 次引用
- Compositional Semantics for Shared-Variable ConcurrencyMikhail Svyatlovskiy, Shai Mermelstein, Ori LahavPLDI 2024 · 1 次引用
它引用的 Paper4
- Promising 2.0: global optimizations in relaxed memory concurrencySung-Hwan Lee, Minki Cho, Anton Podkopaev, Soham Chakraborty 等PLDI 2020 · 48 次引用
- Pomsets with preconditions: a simple model of relaxed memoryRadha Jagadeesan, Alan Jeffrey, James RielyOOPSLA 2020 · 28 次引用
- Repairing and mechanising the JavaScript relaxed memory modelConrad Watt, Christopher Pulte, Anton Podkopaev, Guillaume Barbier 等PLDI 2020 · 20 次引用
- Modular data-race-freedom guarantees in the promising semanticsMinki Cho, Sung-Hwan Lee, Chung-Kil Hur, Ori LahavPLDI 2021 · 14 次引用
相关 Paper
- 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 次引用
- Rely-Guarantee Reasoning for Causally Consistent Shared MemoryOri Lahav, Brijesh Dongol, Heike WehrheimCAV 2023 · 11 次引用
- Verifying optimizations of concurrent programs in the promising semanticsJunpeng Zha, Hongjin Liang, Xinyu FengPLDI 2022 · 5 次引用
- RGSep under Release/Acquire ConsistencyEllen Arlt, Viktor VafeiadisOOPSLA 2026 · 1 次引用
