Frequency estimation of virtual call targets for object-oriented programs

  • Authors:
  • Cheng Zhang;Hao Xu;Sai Zhang;Jianjun Zhao;Yuting Chen

  • Affiliations:
  • Department of Computer Science and Engineering, Shanghai Jiao Tong University;School of Software, Shanghai Jiao Tong University;Computer Science & Engineering Department, University of Washington;Department of Computer Science and Engineering, Shanghai Jiao Tong University and School of Software, Shanghai Jiao Tong University;School of Software, Shanghai Jiao Tong University

  • Venue:
  • Proceedings of the 25th European conference on Object-oriented programming
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

The information of execution frequencies of virtual call targets is valuable for program analyses and optimizations of object-oriented programs. However, to obtain this information, most of the existing approaches rely on dynamic profiling. They usually require running the programs with representative workloads, which are often absent in practice. Additionally, some kinds of programs are very sensitive to run-time disturbance, thus are generally not suitable for dynamic profiling. Therefore, a technique which can statically estimate the execution frequencies of virtual call targets will be very useful. In this paper we propose an evidence-based approach to frequency estimation of virtual call targets. By applying machine learning algorithms on the data collected from a group of selected programs, our approach builds an estimation model to capture the relations between static features and run-time program behaviors. Then, for a new program, the approach estimates the relative frequency for each virtual call target by applying the model to the static features of the program. Once the model has been built, the estimation step is purely static, thus does not suffer the shortcomings of existing dynamic techniques. We have performed a number of experiments on real-world large-scale programs to evaluate our approach. The results show that our approach can estimate frequency distributions which are much more informative than the commonly used uniform distribution.