Lune

ASPLOS2024Top-tier venue

CSSTs: A Dynamic Data Structure for Partial Orders in Concurrent Execution Analysis

Hünkar Can Tunç, Ameya Prashant Deshmukh, Berk Çirisci, Constantin Enea, Andreas Pavlogiannis

Abstract

Dynamic analyses are a standard approach to analyzing and testing concurrent programs. Such techniques observe program traces 𝜎 and analyze them to infer the presence or absence of bugs. At its core, each analysis maintains a partial order 𝑃 that represents order dependencies between the events of 𝜎 . Naturally, the scalability of the analysis largely depends on maintaining 𝑃 efficiently. The standard data structure for this task has thus far been Vector Clocks. These, however, are slow for analyses that follow a non-streaming style, costing 𝑂 (𝑛) time for inserting (and propagating) each new ordering in 𝑃, where 𝑛 is the size of 𝜎, while they cannot handle the deletion of existing orderings.

In this paper we develop Collective Sparse Segment Trees (CSSTs), a simple but elegant data structure for maintaining a partial order 𝑃. CSSTs thrive when the width 𝑘 of 𝑃 is much smaller than the size 𝑛 of its domain, allowing inserting, deleting, and querying for orderings in 𝑃 to run in 𝑂 (log 𝑛) time. For a concurrent trace, 𝑘 normally equals the number of its threads, and is orders of magnitude smaller than its size 𝑛, making CSSTs fitting for this setting. Our experiments confirm that CSSTs are the best data structure currently to handle a range of dynamic analyses from existing literature.

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.

3 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

  • The Complexity of Dynamic Data Race Prediction cites Fast, sound, and effectively complete dynamic race prediction
  • Fast Atomicity Monitoring cites The Complexity of Dynamic Data Race Prediction
  • Fast Atomicity Monitoring cites Fast, sound, and effectively complete dynamic race prediction
  • Fast Atomicity Monitoring cites SmartTrack: efficient predictive race detection
  • Fast Atomicity Monitoring cites Atomicity Checking in Linear Time using Vector Clocks
  • Fast Atomicity Monitoring cites AWDIT: An Optimal Weak Database Isolation Tester
  • SmartTrack: efficient predictive race detection cites Fast, sound, and effectively complete dynamic race prediction
  • Sound and efficient concurrency bug prediction cites Fast, sound, and effectively complete dynamic race prediction
  • The Complexity of Testing Message-Passing Concurrency cites The Complexity of Dynamic Data Race Prediction
  • The Complexity of Testing Message-Passing Concurrency cites Fast, sound, and effectively complete dynamic race prediction
  • The Complexity of Testing Message-Passing Concurrency cites Atomicity Checking in Linear Time using Vector Clocks
  • The Complexity of Testing Message-Passing Concurrency cites AWDIT: An Optimal Weak Database Isolation Tester
  • AWDIT: An Optimal Weak Database Isolation Tester cites The Complexity of Dynamic Data Race Prediction
  • AWDIT: An Optimal Weak Database Isolation Tester cites Fast, sound, and effectively complete dynamic race prediction
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. AWDIT: An Optimal Weak Database Isolation TesterLasse Møldrup, Andreas PavlogiannisPLDI 2025 · 5 citations
  2. The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 citations
  3. Fast Atomicity MonitoringHünkar Can Tunç, Yifan Dong, Andreas PavlogiannisPLDI 2026

Builds on16

  1. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 citations
  2. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao et al.FSE 2021 · 29 citations
  3. SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 citations
  4. The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 citations
  5. Atomicity Checking in Linear Time using Vector ClocksUmang Mathur, Mahesh ViswanathanASPLOS 2020 · 27 citations

Related papers

  1. A tree clock data structure for causal orderings in concurrent executionsUmang Mathur, Andreas Pavlogiannis, Hünkar Can Tunç, Mahesh ViswanathanASPLOS 2022 · 10 citations
  2. Efficient Timestamping for Sampling-Based Race DetectionMinjian Zhang, Daniel Wee Soong Lim, Mosaad Al Thokair, Umang Mathur et al.PLDI 2025 · 1 citation
  3. Detecting concurrency vulnerabilities based on partial orders of memory and thread eventsKunpeng Yu, Chenxu Wang, Yan Cai, Xiapu Luo et al.FSE 2021 · 9 citations
  4. Lazy Search TreesBryce Sandlund, Sebastian WildFOCS 2020 · 1 citation
  5. Parsimonious Optimal Dynamic Partial Order ReductionParosh Aziz Abdulla, Mohamed Faouzi Atig, Sarbojit Das, Bengt Jonsson et al.CAV 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines