A dynamic optimization framework for a Java just-in-time compiler

  • Authors:
  • Toshio Suganuma;Toshiaki Yasue;Motohiro Kawahito;Hideaki Komatsu;Toshio Nakatani

  • Affiliations:
  • IBM Tokyo Research Laboratory, 1623-14 Shimoturuma, Yamato-shi, Kanagawa 242-8502, Japan;IBM Tokyo Research Laboratory, 1623-14 Shimoturuma, Yamato-shi, Kanagawa 242-8502, Japan;IBM Tokyo Research Laboratory, 1623-14 Shimoturuma, Yamato-shi, Kanagawa 242-8502, Japan;IBM Tokyo Research Laboratory, 1623-14 Shimoturuma, Yamato-shi, Kanagawa 242-8502, Japan;IBM Tokyo Research Laboratory, 1623-14 Shimoturuma, Yamato-shi, Kanagawa 242-8502, Japan

  • Venue:
  • OOPSLA '01 Proceedings of the 16th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

The high performance implementation of Java Virtual Machines (JVM) and just-in-time (JIT) compilers is directed toward adaptive compilation optimizations on the basis of online runtime profile information. This paper describes the design and implementation of a dynamic optimization framework in a production-level Java JIT compiler. Our approach is to employ a mixed mode interpreter and a three level optimizing compiler, supporting quick, full, and special optimization, each of which has a different set of tradeoffs between compilation overhead and execution speed. a lightweight sampling profiler operates continuously during the entire program's exectuion. When necessary, detailed information on runtime behavior is collected by dynmiacally generating instrumentation code which can be installed to and uninstalled from the specified recompilation target code. Value profiling with this instrumentation mechanism allows fully automatic code specialization to be performed on the basis of specific parameter values or global data at the highest optimization level. The experimental results show that our approach offers high performance and a low code expansion ratio in both program startup and steady state measurements in comparison to the compile-only approach, and that the code specialization can also contribute modest performance improvement