首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Java虚拟机中动态内联策略的改进
引用本文:周晶,王雷,刘志成.Java虚拟机中动态内联策略的改进[J].北京航空航天大学学报,2006,32(3):352-356.
作者姓名:周晶  王雷  刘志成
作者单位:北京航空航天大学 计算机学院, 北京 100083
基金项目:英特尔中国研究中心(ICRC)基金
摘    要:在Java虚拟机中,传统的基于计数的热点探测方法往往不能得到方法间的调用关系,因此,采用这种机制的动态编译器会丧失一些优化机会,比如方法内联.提出了基于在线反馈信息的动态内联策略.同已有的内联算法相比,该方法引入了BC Map,它由基线编译器对方法进行第一次编译时构建.BC Map可以确定对方法M进行调用的字节码在其调用者中的索引.通过构建Guarded Rec记录,编译器能够准确判断出虚方法的接收者对象的类型,进而确定方法间的调用关系.使用该信息指导的保护内联优化可以避免静态判断虚方法的接收者对象类型的缺陷,得到更加准确的动态信息,使应用程序的性能得到提升. 

关 键 词:Java  程序设计语言    编译程序    优化
文章编号:1001-5965(2006)03-0352-05
收稿时间:2005-03-25
修稿时间:2005年3月25日

Dynamic inlining scheme improvement in JVM
Zhou Jing,Wang Lei,Liu Zhicheng.Dynamic inlining scheme improvement in JVM[J].Journal of Beijing University of Aeronautics and Astronautics,2006,32(3):352-356.
Authors:Zhou Jing  Wang Lei  Liu Zhicheng
Institution:School of Computer Science and Technology, Beijing University of Aeronautics and Astronautics, Beijing 100083, China
Abstract:In the Java virtual machine(JVM),traditional counter-based hotspot-detecting method usually can not get the caller-callee relationship,therefore,the dynamic compiler which applied this scheme would lose some optimization opportunities,such as method inlining.A dynamic inlining scheme based on online feedback information was proposed.Compared with the algorithms presented,the new method introduced BCMap,it was constructed by the baseline compiler when a method was compiled for the first time.BCMap can identify the index of the bytecode that invoked method M in its caller.With constructing GuardedRec record,the compiler can get the type of virtual method's receiver object correctly,and then identify the relationship between caller and callee.The guarded inlining guided by this information can avoid identifying the type of virtual method's receiver object statically,get the dynamic information more precisely,and then it can increase applications' performance.
Keywords:Java programming language  program compilers  optimization  
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《北京航空航天大学学报》浏览原始摘要信息
点击此处可从《北京航空航天大学学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号