Skip to main navigation Skip to search Skip to main content

Study of stack allocation in loop based on escape analysis

  • Lei Wang*
  • , Xing Xu
  • *Corresponding author for this work
  • Beihang University

Research output: Contribution to journal › Article › peer-review

Abstract

The technique of stack allocation improves the efficiency of Java program, but the trade-off between the ratio of allocated objects and the size of stack is difficult. In this paper, a flow-insensitive, inter-procedural, and context-sensitive escape analysis is implemented. The allocation policy based on loop as a basic unit is presented, and the concepts of object stack and stack region are proposed. The authors implement the stack allocation based on escape analysis through the loop analysis. The result of SPECjvm98 shows that 8.3% to 25% (with an average of 15.18%) of all objects could be stack allocated in the new algorithm with the controlled size of stack.

Original languageEnglish
Pages (from-to)1101-1108
Number of pages8
JournalJisuanji Xuebao/Chinese Journal of Computers
Volume31
Issue number7
DOIs
StatePublished - Jul 2008

Keywords

  • Escape analysis
  • JVM
  • Loop analysis
  • Program analysis
  • Stack allocation

Fingerprint

Dive into the research topics of 'Study of stack allocation in loop based on escape analysis'. Together they form a unique fingerprint.

Cite this