Compare Less, Defer More Scaling Value-Contexts Based Whole-Program Heap Analyses

被引:13
|
作者
Thakur, Manas [1 ]
Nandivada, V. Krishna [1 ]
机构
[1] IIT Madras, Dept CSE, Chennai, TN, India
关键词
Static program analysis; Context-sensitivity; Value-contexts; LSRV-contexts; POINTS-TO ANALYSIS; ESCAPE ANALYSIS;
D O I
10.1145/3302516.3307359
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The precision of heap analyses determines the precision of several associated optimizations, and has been a prominent area in compiler research. It has been shown that context-sensitive heap analyses are more precise than the insensitive ones, but their scalability continues to be a cause of concern. Though the value-contexts approach improves the scalability of classical call-string based context-sensitive analyses, it still does not scale well for several popular whole-program heap analyses. In this paper, we propose a three-stage analysis approach that lets us scale complex whole-program value-contexts based heap analyses for large programs, without losing their precision. Our approach is based on a novel idea of level-summarized relevant value-contexts (LSRV-contexts), which take into account an important observation that we do not need to compare the complete value-contexts at each call-site. Our overall approach consists of three stages: (i) a fast pre-analysis stage that finds the portion of the caller-context which is actually needed in the callee; (ii) a main-analysis stage which uses LSRV-contexts to defer the analysis of methods that do not impact the callers' heap and analyze the rest efficiently; and (iii) a post-analysis stage that analyzes the deferred methods separately. We demonstrate the usefulness of our approach by using it to perform whole-program context-, flow- and field-sensitive thread-escape analysis and control-flow analysis of Java programs. Our evaluation of the two analyses against their traditional value-contexts based versions shows that we not only reduce the analysis time and memory consumption significantly, but also succeed in analyzing otherwise unanalyzable programs in less than 40 minutes.
引用
收藏
页码:135 / 146
页数:12
相关论文
共 1 条
  • [1] Scaling up of a workplace program to get Australian desk-based workers to sit less and move more at work
    Dunstan, David
    Healy, Genevieve
    Goode, Ana
    [J]. JOURNAL OF PHYSICAL ACTIVITY & HEALTH, 2018, 15 (10): : S156 - S156