arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1808.00185cs.PLcs.SE
收藏

第一场比赛之后会发生什么?增强基于Happens-Before的动态竞争检测的预测能力

What Happens - After the First Race? Enhancing the Predictive Power of Happens - Before Based Dynamic Race Detection

Umang Mathur, Dileep Kini, Mahesh Viswanathan

摘要:

动态竞争检测是确定所观察到的程序执行是否揭示程序中存在数据竞争的问题。解决这个问题的经典方法是检测是否有一对冲突的内存访问是无序的Lamport的happens-before(HB)关系。已知基于HB的种族检测不报告假阳性,即,它是健全的。然而,HB的可靠性保证仅承诺第一对无序的冲突事件是可消除的数据竞争。也就是说,可能存在作为不可并行竞争的HB无序冲突数据访问对,因为不存在对执行事件的重新排序,其中竞争中的事件可以在彼此之后立即执行。我们引入了一个新的偏序,称为可调度的发生之前(SHB),它准确地描述了可调度的数据竞赛对-每对由SHB识别的冲突数据访问都可以被调度,并且每一个可以被调度的HB竞赛都由SHB识别。因此,SHB偏序是真正合理的。我们提出了一个线性时间,矢量时钟算法来检测使用SHB可识别的种族。我们的实验表明,我们的算法的动态竞争检测的价值- SHB只会产生很小的性能开销,可以扩展到执行从现实世界的软件应用程序,而不损害健全性。

英文摘要:

Dynamic race detection is the problem of determining if an observed program execution reveals the presence of a data race in a program. The classical approach to solving this problem is to detect if there is a pair of conflicting memory accesses that are unordered by Lamport's happens-before (HB) relation. HB based race detection is known to not report false positives, i.e., it is sound. However, the soundness guarantee of HB only promises that the first pair of unordered, conflicting events is a schedulable data race. That is, there can be pairs of HB-unordered conflicting data accesses that are not schedulable races because there is no reordering of the events of the execution, where the events in race can be executed immediately after each other. We introduce a new partial order, called schedulable happens-before (SHB) that exactly characterizes the pairs of schedulable data races --- every pair of conflicting data accesses that are identified by SHB can be scheduled, and every HB-race that can be scheduled is identified by SHB. Thus, the SHB partial order is truly sound. We present a linear time, vector clock algorithm to detect schedulable races using SHB. Our experiments demonstrate the value of our algorithm for dynamic race detection --- SHB incurs only little performance overhead and can scale to executions from real-world software applications without compromising soundness.

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

↑