arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.02801cs.PL
收藏

移相器程序的安全验证

Safety Verification of Phaser Programs

Zeinab Ganjei, Ahmed Rezine, Petru Eles, Zebo Peng

摘要:

我们解决的问题,静态检查控制状态的可达性(如在断言违规,竞争条件或运行时错误的可能性)和平原的可达性(如在死锁自由)的相位器程序。Phasers是一种现代的非平凡同步构造,它支持动态并行,具有运行时注册和注销派生任务。它们允许集体和点对点同步。例如,相位器可以在所有或子集的正在运行的任务中实施屏障或生产者-消费者同步方案。这些最新的动态同步的实现可以在X10或Habanero Java等现代语言中找到。阶段器本质上将阶段与各个任务相关联,并使用它们的运行时值来限制可能的并发执行。无界阶段可能导致无限的过渡系统,即使在程序只创建有限数量的任务和相位器的情况下。我们引入了一个确切的间隙顺序为基础的程序,总是终止时检查控制可达性的程序生成有限数量的共存任务和相位。我们还表明,验证平原的可达性是不可判定的,即使程序生成的任务和相位很少。然后,我们解释如何把我们的过程变成一个健全的分析,检查平原可达性(包括死锁自由)。我们报告了使用我们的开源工具进行的初步实验。

英文摘要:

We address the problem of statically checking control state reachability (as in possibility of assertion violations, race conditions or runtime errors) and plain reachability (as in deadlock-freedom) of phaser programs. Phasers are a modern non-trivial synchronization construct that supports dynamic parallelism with runtime registration and deregistration of spawned tasks. They allow for collective and point-to-point synchronizations. For instance, phasers can enforce barriers or producer-consumer synchronization schemes among all or subsets of the running tasks. Implementations %of these recent and dynamic synchronization are found in modern languages such as X10 or Habanero Java. Phasers essentially associate phases to individual tasks and use their runtime values to restrict possible concurrent executions. Unbounded phases may result in infinite transition systems even in the case of programs only creating finite numbers of tasks and phasers. We introduce an exact gap-order based procedure that always terminates when checking control reachability for programs generating bounded numbers of coexisting tasks and phasers. We also show verifying plain reachability is undecidable even for programs generating few tasks and phasers. We then explain how to turn our procedure into a sound analysis for checking plain reachability (including deadlock freedom). We report on preliminary experiments with our open source tool.

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

↑