首页> 外文会议>International Conference on Integrated Formal Methods >Lock and Fence When Needed: State Space Exploration + Static Analysis = Improved Fence and Lock Insertion
【24h】

Lock and Fence When Needed: State Space Exploration + Static Analysis = Improved Fence and Lock Insertion

机译:需要锁定和围栏:状态空间探索+静态分析=改进的栅栏和锁定插入

获取原文

摘要

When targeting modern parallel hardware architectures, constructing correct and high-performing software is complex and time-consuming. In particular, reorderings of memory accesses that violate intended sequentially consistent behaviour are a major source of bugs. Applying synchronisation mechanisms to repair these should be done sparingly, as they negatively impact performance. In the past, both static analysis approaches and techniques based on explicit-state model checking have been proposed to identify where synchronisation fences have to be placed in a program. The former are fast, but the latter more precise, as they tend to insert fewer fences. Unfortunately, the model checking techniques suffer a form of state space explosion that is even worse than the traditional one. In this work, we propose a technique using a combination of state space exploration and static analysis. This combination is in terms of precision comparable to purely model checking-based techniques, but it reduces the state space explosion problem to the one typically seen in model checking. Furthermore, experiments show that the combination frequently outperforms both purely model checking and static analysis techniques. In addition, we have added the capability to check for atomicity violations, which is another major source of bugs.
机译:当针对现代并行硬件架构时,构建正确和高性能的软件是复杂且耗时的。特别是,违反预期顺序一致行为的内存访问的重新排序是错误的主要来源。应用同步机制应谨慎地进行,因为它们产生负面影响。过去,已经提出了基于显式 - 状态模型检查的静态分析方法和技术,以识别同步围栏必须放置在程序中的位置。前者很快,但后者更精确,因为它们倾向于插入更少的围栏。不幸的是,模型检查技术遭受了一种状态空间爆炸形式,甚至比传统更糟糕。在这项工作中,我们提出了一种使用状态空间探索和静态分析的组合的技术。这种组合在精度方面,与纯粹的基于型号的基于检查的技术相当,但它将状态空间爆炸问题减少到通常在模型检查中看到的问题。此外,实验表明,组合经常优于纯粹的模型检查和静态分析技术。此外,我们还增加了检查原子性违规的能力,这是错误的另一个主要来源。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号