跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2512.05555 (cs)
[提交于 2025年12月5日 (v1),最后修订于 2026年10月19日 (此版本, v2)]

标题:Instrumentation Optimization for Practical Dynamic Race Detection

作者:Alexey Paznikov, Michael Schwarz, Andrey Kogutenko, Yaroslav Osipov, Umang Mathur
查看论文《Instrumentation Optimization for Practical Dynamic Race Detection》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Dynamic data race detectors are successful at flagging concurrency bugs, but their high runtime overhead limits adoption. This overhead stems primarily from pervasive instrumentation of memory accesses -- a significant fraction of which is for safe accesses. We address this inefficiency through a compiler-integrated approach that identifies safe accesses using static analysis and eliminates instrumentation for these. We strike a careful balance between analysis precision and cost, to ensure applicability to real-world applications. We show that our optimizations never cause ThreadSanitizer to miss races it would otherwise detect. We further observe that many checks are redundant: They only flag a race if a preceding check has already flagged an equivalent race for the same memory location. We show that, when reporting one representative per class is sufficient, even more instrumentation can be eliminated. Lastly, we introduce a dynamic technique that skips instrumentation when there is only one thread at runtime, even when this could not be determined statically. We integrate these static analyses and program transformations into the ThreadSanitizer race detector based on LLVM. Our experiments on a diverse suite of real-world applications, including Memcached, Redis, SQLite, MySQL, and Chromium, demonstrate that our optimizations reduce the number of instrumentation calls at runtime by up to 91% and yield application-level speedups of up to 1.91x, a geometric-mean Chromium speedup of 1.25x on Blink and 1.14x on Speedometer 3.0, and peak speedups reaching 2.28x on Memcached with two server threads. Our optimizations are in the process of being upstreamed into ThreadSanitizer.
评论: v2: camera-ready version, to appear in the 2026 ACM SIGOPS Annual Technical Conference (SIGOPS ATC 2026). New title; the supplementary material is included as appendices. 24 pages
主题: 程序设计语言 (cs.PL); 操作系统 (cs.OS); 软件工程 (cs.SE)
引用方式: arXiv:2512.05555 [cs.PL]
  (或者 arXiv:2512.05555v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2512.05555

提交历史

来自:Alexey Paznikov
[v1] 2025年12月5日 星期五 09:26:08 UTC (287 KB)
[v2] 2026年10月19日 星期一 07:06:11 UTC (124 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.OS
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-10
切换浏览方式为:
cs
cs.PL
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站