Escape analysis for object-oriented languages
Bruno Blanchet · ACM SIGPLAN Notices · 1999
Escape analysis [27, 14, 5] is a static analysis that determines whether the lifetime of data exceeds its static scope. The main originality of our escape analysis is that it determines precisely the effect of assignments, which is necessary to apply it to object oriented languages with promising results, whereas previous work [27, 14, 5] applied it to functional languages and were very imprecise on assignments. Our implementation analyses the full Java™ Language. We have applied our analysis to stack allocation and synchronization elimination. We manage to stack allocate 13% to 95% of data, eliminate more than 20% of synchronizations on most programs (94% and 99% on two examples) and get up to 44% speedup (21% on average). Our detailed experimental study on large programs shows that the improvement comes from the decrease of the garbage collection and allocation times than from improvements on data locality [7], contrary to what happened for ML [5].
Cited by 102 works. doi:10.1145/320385.320387 Open-access PDF
Authors
References
- Abstract interpretation
- Systematic design of program analysis frameworks
- A flexible approach to interprocedural data flow analysis and programs with recursive data structures
- Interprocedural may-alias analysis for pointers
- Lifetime analysis of dynamically allocated objects
- A semantic model of reference counting and its abstraction (detailed summary)
- Escape analysis for Java
- Compiler optimizations for improving data locality
- The interprocedural analysis and automatic parallelization of Scheme programs
- On determining lifetime and aliasing of dynamically allocated data in higher-order functional specifications