Lune

ASPLOS2023顶会

AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMM

Martin Beck, Koustubha Bhat, Lazar Stricevic, Geng Chen, Diogo Behrens, Ming Fu, Viktor Vafeiadis, Haibo Chen, Hermann Härtig

摘要

CPUs with weak memory-consistency models (WMMs), such as Arm and RISC-V, are rapidly increasing their market share. Porting legacy x86 applications to such CPUs requires introducing extra synchronization to prevent WMM-related concurrency bugs-a task often left to human experts.

Given the rarity of such experts and the enormous size of legacy applications, we develop AtoMig, an effective, fully automated tool for porting large, real-world applications to WMM CPU architectures. AtoMig detects shared memory access patterns with novel static analysis strategies and performs program transformations to properly protect them from WMM effects. In the absence of sufficiently scalable verification methods, AtoMig shows practicality of focusing on code patterns more prone to WMM faults, trading off completeness for scalability.

We validate the correctness of AtoMig's transformations on several small concurrent benchmarks via model checking. We demonstrate the scalability and performance of our approach by applying AtoMig to popular real-world large code bases with up to millions of lines of code, viz., MariaDB, PostgreSQL, SQLite, LevelDB, and Memcached. As part of this work, we also found a WMM bug in MariaDB, which AtoMig fixes automatically.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

免费注册,获取答案

无需绑卡

脉络

  • Arm Weak Memory Consistency on Apple Silicon: What Is It Good For? 引用了 HMC: Model Checking for Hardware Memory Models
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 Lasagne: a static binary translator for weak memory model architectures
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 Polynima: Practical Hybrid Recompilation for Multithreaded Binaries
  • Lasagne: a static binary translator for weak memory model architectures 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 Lasagne: a static binary translator for weak memory model architectures
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation 引用了 Polynima: Practical Hybrid Recompilation for Multithreaded Binaries
  • VSync: push-button verification and optimization for synchronization primitives on weak memory models 引用了 HMC: Model Checking for Hardware Memory Models
  • VSync: push-button verification and optimization for synchronization primitives on weak memory models 引用了 No barrier in the road: a comprehensive study and optimization of ARM barriers
  • Polynima: Practical Hybrid Recompilation for Multithreaded Binaries 引用了 Lasagne: a static binary translator for weak memory model architectures
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Polynima: Practical Hybrid Recompilation for Multithreaded BinariesChinmay Deshpande, Fabian Parzefall, Felicitas Hetzelt, Michael FranzEuroSys 2024 · 3 次引用
  2. Arancini: A Hybrid Binary Translator for Weak Memory Model ArchitecturesSebastian Reimers, Dennis Sprokholt, Martin Fink, Theofilos Augoustis 等ASPLOS 2026 · 1 次引用
  3. No More Translation at Runtime: LLM-Empowered Static Binary TranslationZhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu 等EuroSys 2026 · 1 次引用
  4. Arm Weak Memory Consistency on Apple Silicon: What Is It Good For?Yossi Khayet, Adam MorrisonASPLOS 2026

它引用的 Paper4

  1. VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu 等ASPLOS 2021 · 40 次引用
  2. HMC: Model Checking for Hardware Memory ModelsMichalis Kokologiannakis, Viktor VafeiadisASPLOS 2020 · 29 次引用
  3. Lasagne: a static binary translator for weak memory model architecturesRodrigo C. O. Rocha, Dennis Sprokholt, Martin Fink, Redha Gouicem 等PLDI 2022 · 21 次引用
  4. No barrier in the road: a comprehensive study and optimization of ARM barriersNian Liu, Binyu Zang, Haibo ChenPPoPP 2020 · 10 次引用

相关 Paper

  1. Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory ModelsNicholas Coughlin, Kirsten Winter, Graeme SmithFM 2021 · 16 次引用
  2. CLoF: A Compositional Lock Framework for Multi-level NUMA SystemsRafael Lourenco de Lima Chehab, Antonio Paolillo, Diogo Behrens, Ming Fu 等SOSP 2021 · 6 次引用
  3. LLM Assistance for Memory SafetyJ. Nausheen Mohammed, Akash Lal, Aseem Rastogi, Rahul Sharma 等ICSE 2025 · 4 次引用
  4. RELINCHE: Automatically Checking Linearizability under Relaxed Memory ConsistencyPavel Golovin, Michalis Kokologiannakis, Viktor VafeiadisPOPL 2025 · 4 次引用
  5. Concrat: An Automatic C-to-Rust Lock API Translator for Concurrent ProgramsJaemin Hong, Sukyoung RyuICSE 2023 · 17 次引用
黄昏的海面,两侧是细线勾勒的悬崖