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
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- The Complexity of Dynamic Data Race Prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
- Fast Atomicity Monitoring 引用了 The Complexity of Dynamic Data Race Prediction
- Fast Atomicity Monitoring 引用了 Fast, sound, and effectively complete dynamic race prediction
- Fast Atomicity Monitoring 引用了 SmartTrack: efficient predictive race detection
- Fast Atomicity Monitoring 引用了 Atomicity Checking in Linear Time using Vector Clocks
- Fast Atomicity Monitoring 引用了 AWDIT: An Optimal Weak Database Isolation Tester
- SmartTrack: efficient predictive race detection 引用了 Fast, sound, and effectively complete dynamic race prediction
- Sound and efficient concurrency bug prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
- The Complexity of Testing Message-Passing Concurrency 引用了 The Complexity of Dynamic Data Race Prediction
- The Complexity of Testing Message-Passing Concurrency 引用了 Fast, sound, and effectively complete dynamic race prediction
- The Complexity of Testing Message-Passing Concurrency 引用了 Atomicity Checking in Linear Time using Vector Clocks
- The Complexity of Testing Message-Passing Concurrency 引用了 AWDIT: An Optimal Weak Database Isolation Tester
- AWDIT: An Optimal Weak Database Isolation Tester 引用了 The Complexity of Dynamic Data Race Prediction
- AWDIT: An Optimal Weak Database Isolation Tester 引用了 Fast, sound, and effectively complete dynamic race prediction
引用它的顶会 Paper3
- AWDIT: An Optimal Weak Database Isolation TesterLasse Møldrup, Andreas PavlogiannisPLDI 2025 · 5 次引用
- The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 次引用
- Fast Atomicity MonitoringHünkar Can Tunç, Yifan Dong, Andreas PavlogiannisPLDI 2026
它引用的 Paper16
- Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 次引用
- Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao 等FSE 2021 · 29 次引用
- SmartTrack: efficient predictive race detectionJake Roemer, Kaan Genç, Michael D. BondPLDI 2020 · 28 次引用
- The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 次引用
- Atomicity Checking in Linear Time using Vector ClocksUmang Mathur, Mahesh ViswanathanASPLOS 2020 · 27 次引用
相关 Paper
- A tree clock data structure for causal orderings in concurrent executionsUmang Mathur, Andreas Pavlogiannis, Hünkar Can Tunç, Mahesh ViswanathanASPLOS 2022 · 10 次引用
- Efficient Timestamping for Sampling-Based Race DetectionMinjian Zhang, Daniel Wee Soong Lim, Mosaad Al Thokair, Umang Mathur 等PLDI 2025 · 1 次引用
- Detecting concurrency vulnerabilities based on partial orders of memory and thread eventsKunpeng Yu, Chenxu Wang, Yan Cai, Xiapu Luo 等FSE 2021 · 9 次引用
- Lazy Search TreesBryce Sandlund, Sebastian WildFOCS 2020 · 1 次引用
- Parsimonious Optimal Dynamic Partial Order ReductionParosh Aziz Abdulla, Mohamed Faouzi Atig, Sarbojit Das, Bengt Jonsson 等CAV 2024 · 4 次引用
