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

顺序Java程序符号序列的自动推理

Automatic Inference of Symbolic Permissions for Sequential Java Programs

Ayesha Sadiq, Yuan-Fang Li, Li Li, Sea Ling, Ijaz Ahmed

摘要:

在主流程序设计语言(如Java)中,启用并发性的常见方法是手动引入显式并发性构造(如多线程)。在多线程程序中,由于线程交错和堆冲突等问题的存在,线程间的同步管理是一项复杂而具有挑战性的任务。考虑到这些因素,基于访问权限的依赖关系已被调查作为一种替代方法来验证多线程程序的正确性,并利用隐式并发存在于顺序程序中,而不使用显式并发约束。然而,在源程序中手动添加基于权限的规范会产生显著的注释开销,从而降低了现有基于权限的方法的有效性。在本文中,我们提出了一个框架,Sip4J,自动提取访问权限为基础的隐式依赖从顺序Java程序,通过执行程序间的源代码的静态分析。此外,我们集成和扩展现有的基于权限的验证工具,脉冲,自动验证推断规范的正确性,并对他们的并发行为的原因。我们对一些广泛使用的基准测试的评估给出了强有力的证据,推断的注释的正确性和它们的有效性,使并发顺序程序。

英文摘要:

In mainstream programming languages such as Java, a common way to enable concurrency is to manually introduce explicit concurrency constructs such as multi-threading. In multi-threaded programs, managing synchronization between threads is a complicated and challenging task for the programmers due to thread interleaving and heap interference that leads to problems such as deadlocks, data races. With these considerations in mind, access permission-based dependencies have been investigated as an alternative approach to verify the correctness of multi-threaded programs and to exploit the implicit concurrency present in sequential programs without using explicit concurrency constraints. However, significant annotation overhead can arise from manually adding permission-based specifications in a source program, diminishing the effectiveness of existing permission-based approaches. In this paper,we present a framework, Sip4J, to automatically extract access permission-based implicit dependencies from sequential Java programs, by performing inter-procedural static analysis of the source code. Moreover, we integrate and extend an existing permission-based verification tool, Pulse, to automatically verify correctness of the inferred specifications and to reason about their concurrent behaviors. Our evaluation on some widely-used benchmarks gives strong evidence of the correctness of the inferred annotations and their effectiveness in enabling concurrency in sequential programs.

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

↑