arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1112.3756cs.PLcs.LO
收藏

多线程程序的概率指针分析

Probabilistic pointer analysis for multithreaded programs

Mohamed A. El-Zawawy

摘要:

使用指针和基于指针的数据结构会导致循环内存引用,这些引用由重要的编译器分析(即指针分析)解释。对于程序点上的一对内存引用,典型的指针分析指定它们之间的指向关系是可能存在、肯定不存在还是肯定存在。“may be”情况描述了大多数对的指向关系,大多数编译器优化都无法处理。这是为了保证这些优化的可靠性。然而,如果可以测量两个存储器引用混叠的概率,则“可能是”的情况可以由推测优化的现代类来大写。针对当前流行的多线程编程技术,本文提出了一种新的流敏感的多线程程序的概率指针分析技术。该技术具有类型系统的形式,并计算在每个程序点的每个点到关系的概率。我们的方法的关键是通过后类型推导来计算指向信息。使用类型系统的优点是将每个分析结果与结果正确性的理由(证明)相关联。这种证明具有类型派生的形式,并且在认证代码等应用程序中非常需要。

英文摘要:

The use of pointers and data-structures based on pointers results in circular memory references that are interpreted by a vital compiler analysis, namely pointer analysis. For a pair of memory references at a program point, a typical pointer analysis specifies if the points-to relation between them may exist, definitely does not exist, or definitely exists. The "may be" case, which describes the points-to relation for most of the pairs, cannot be dealt with by most compiler optimizations. This is so to guarantee the soundness of these optimizations. However, the "may be" case can be capitalized by the modern class of speculative optimizations if the probability that two memory references alias can be measured. Focusing on multithreading, a prevailing technique of programming, this paper presents a new flow-sensitive technique for probabilistic pointer analysis of multithreaded programs. The proposed technique has the form of a type system and calculates the probability of every points-to relation at each program point. The key to our approach is to calculate the points-to information via a post-type derivation. The use of type systems has the advantage of associating each analysis results with a justification (proof) for the correctness of the results. This justification has the form of a type derivation and is very much required in applications like certified code.

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

↑