首页> 外国专利> Detecting data race and atomicity violation via typestate-guided static analysis

Detecting data race and atomicity violation via typestate-guided static analysis

机译:通过类型状态引导的静态分析检测数据竞争和原子性违规

摘要

Mechanisms for analyzing computer instructions implementing a program in which typestate analysis is informed by concurrency analysis. The concurrency-guided typestate analysis may simulate the “worst case” scenario due to thread interleaving by transitioning a simulated state of the variable to a special state whenever the variable is not guarded by its intended guarding lock. While in the special state, the analysis may assume that the state of the simulated variable is the worst possible state with respect to processing operations that may lead to an error depending on the state of the variable. Thus, the analysis performed may assume that referencing the variable in a state-dependent operation while the simulated state of the variable is in the special state may lead to an error, and the analysis may generate a warning, accordingly. The analysis may process the computer instructions to infer which lock is intended to guard a shared variable.
机译:用于分析计算机指令的机制,该机制实现了通过并发分析通知类型状态分析的程序。并发引导型状态分析可以通过在变量不受其预期的保护锁保护的情况下将变量的模拟状态转换为特殊状态来模拟线程交织导致的“最坏情况”。在特殊状态下,分析可能会假设模拟变量的状态是相对于可能会导致错误的处理操作(取决于变量状态)的最坏状态。因此,执行的分析可以假定在变量的模拟状态处于特殊状态时在状态依赖的操作中引用变量可能会导致错误,并且分析可能因此产生警告。该分析可以处理计算机指令,以推断出哪个锁旨在保护共享变量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号