Lune

POPL2022Top-tier venue

The leaky semicolon: compositional semantic dependencies for relaxed-memory concurrency

Alan Jeffrey, James Riely, Mark Batty, Simon Cooksey, Ilya Kaysin, Anton Podkopaev

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic Choice cites Modular data-race-freedom guarantees in the promising semantics
  • Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic Choice cites Promising 2.0: global optimizations in relaxed memory concurrency
  • Model checking for a multi-execution memory model cites Promising 2.0: global optimizations in relaxed memory concurrency
  • Model checking for a multi-execution memory model cites Pomsets with preconditions: a simple model of relaxed memory
  • Relaxed Memory Concurrency Re-executed cites Model checking for a multi-execution memory model
  • Relaxed Memory Concurrency Re-executed cites Promising 2.0: global optimizations in relaxed memory concurrency
  • Relaxed Memory Concurrency Re-executed cites Pomsets with preconditions: a simple model of relaxed memory
  • Putting Weak Memory in Order via a Promising Intermediate Representation cites Modular data-race-freedom guarantees in the promising semantics
  • Putting Weak Memory in Order via a Promising Intermediate Representation cites Promising 2.0: global optimizations in relaxed memory concurrency
  • Putting Weak Memory in Order via a Promising Intermediate Representation cites Pomsets with preconditions: a simple model of relaxed memory
  • Compositional Semantics for Shared-Variable Concurrency cites Pomsets with preconditions: a simple model of relaxed memory
  • Pomsets with preconditions: a simple model of relaxed memory cites Repairing and mechanising the JavaScript relaxed memory model
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Putting Weak Memory in Order via a Promising Intermediate RepresentationSung-Hwan Lee, Minki Cho, Roy David Margalit, Chung-Kil Hur et al.PLDI 2023 · 5 citations
  2. Model checking for a multi-execution memory modelEvgenii Moiseenko, Michalis Kokologiannakis, Viktor VafeiadisOOPSLA 2022 · 4 citations
  3. Relaxed Memory Concurrency Re-executedEvgenii Moiseenko, Matteo Meluzzi, Innokentii Meleshchenko, Ivan Kabashnyi et al.POPL 2025 · 2 citations
  4. Symbolic MRD: Dynamic Memory, Undefined Behaviour, and Extrinsic ChoiceJay Richards, Daniel Wright, Simon Cooksey, Mark BattyOOPSLA 2025 · 1 citation
  5. Compositional Semantics for Shared-Variable ConcurrencyMikhail Svyatlovskiy, Shai Mermelstein, Ori LahavPLDI 2024 · 1 citation

Builds on4

  1. Promising 2.0: global optimizations in relaxed memory concurrencySung-Hwan Lee, Minki Cho, Anton Podkopaev, Soham Chakraborty et al.PLDI 2020 · 48 citations
  2. Pomsets with preconditions: a simple model of relaxed memoryRadha Jagadeesan, Alan Jeffrey, James RielyOOPSLA 2020 · 28 citations
  3. Repairing and mechanising the JavaScript relaxed memory modelConrad Watt, Christopher Pulte, Anton Podkopaev, Guillaume Barbier et al.PLDI 2020 · 20 citations
  4. Modular data-race-freedom guarantees in the promising semanticsMinki Cho, Sung-Hwan Lee, Chung-Kil Hur, Ori LahavPLDI 2021 · 14 citations

Related papers

  1. Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory ModelsNicholas Coughlin, Kirsten Winter, Graeme SmithFM 2021 · 16 citations
  2. An Axiomatic Basis for Computer Programming on the Relaxed Arm-A Architecture: The AxSL LogicAngus Hammond, Zongyuan Liu, Thibaut Pérami, Peter Sewell et al.POPL 2024 · 8 citations
  3. Rely-Guarantee Reasoning for Causally Consistent Shared MemoryOri Lahav, Brijesh Dongol, Heike WehrheimCAV 2023 · 11 citations
  4. Verifying optimizations of concurrent programs in the promising semanticsJunpeng Zha, Hongjin Liang, Xinyu FengPLDI 2022 · 5 citations
  5. RGSep under Release/Acquire ConsistencyEllen Arlt, Viktor VafeiadisOOPSLA 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines