• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science

Previous Articles     Next Articles

A static and dynamic adaptive optimization
 method based on Java virtual machine

ZHANG Haijun1,ZHENG Yan2,YE Jun1,BAI Shujing1   

  1. (1.Jiangnan Institute of Computing Technology,Wuxi 214083;
    2.Wuxi City College of Vocational Technology,Wuxi  214073,China)
     
  • Received:2018-10-15 Revised:2018-12-21 Online:2019-06-25 Published:2019-06-25

Abstract:

Dynamic language can take advantage of the profiling information at runtime to guide various optimizations of the program. However, the existing JAVA virtual machine does not effectively utilize the information collected at runtime, and directly discards it at the end. It re-monitors and collects the information needed for optimization when the program is executed again. We therefore propose a static and dynamic adaptive optimization method based on HotSpot virtual machine, which saves the optimal parameters or information obtained by the optimized object iterative search at runtime into the resource library. It can learn from the resource library to obtain the best parameters or options suitable for the current program, and effectively use the data accumulated at runtime. Resource analysis is static and offline, and does not take up the overhead for running the application. In the process of iterative learning, the accuracy and efficiency of the resource library learning process are ensured by avoiding redundancy instances to enter the library and removing noise instances from the library. Experiments show that the proposal is practical in guiding the adaptive optimization for Java virtual machine on different platforms.
 

Key words: Java virtual machine, adaptive optimization, iterative compilation;instance learning, resource library