arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1403.1749cs.SE
收藏

自动查找原子区域以修复并发程序中的错误

Automatically finding atomic regions for fixing bugs in Concurrent programs

Saurabh Joshi, Akash Lal

摘要:

本文提出了一种技术,用于自动构建一个修复错误的并发程序:给定一个并发程序,不满足用户提供的断言,我们推断原子块修复程序。原子块保护一段代码,并确保它在不受其他线程中断的情况下运行。我们的技术使用一个验证工具作为一个子程序,以找到最小的原子区域,消除所有的错误在一个给定的程序。保持原子区域较小可以实现最大的并发性。我们已经在一个名为AtomicInf的工具中实现了我们的方法。AtomicInf的用户可以为推断的修复在强和弱原子性语义之间进行选择。虽然前者更容易找到,但后者提供了有关修复的错误的更多信息。我们在几个基准测试中运行了AtomicInf,并在所有基准测试中找到了最小和最精确的原子区域。我们在我们的设置中实现了一种早期的技术,并观察到AtomicInf的平均速度是早期方法的1.7倍。

英文摘要:

This paper presents a technique for automatically constructing a fix for buggy concurrent programs: given a concurrent program that does not satisfy user-provided assertions, we infer atomic blocks that fix the program. An atomic block protects a piece of code and ensures that it runs without interruption from other threads. Our technique uses a verification tool as a subroutine to find the smallest atomic regions that remove all bugs in a given program. Keeping the atomic regions small allows for maximum concurrency. We have implemented our approach in a tool called AtomicInf. A user of AtomicInf can choose between strong and weak atomicity semantics for the inferred fix. While the former is simpler to find, the latter provides more information about the bugs that got fixed. We ran AtomicInf on several benchmarks and came up with the smallest and the most precise atomic regions in all of them. We implemented an earlier technique to our setting and observed that AtomicInf is 1.7 times faster on an average as compared to an earlier approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑