检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:林传文[1,2,3] 顾乃杰[1,2,3] 蔡嵩松[4]
机构地区:[1]中国科学技术大学计算机科学技术学院,安徽合肥230027 [2]安徽省计算与通信软件重点实验室,安徽合肥230027 [3]中国科学技术大学中科院沈阳计算所网络与通信联合实验室,安徽合肥230027 [4]中国科学院计算技术研究所,北京100190
出 处:《中国科学技术大学学报》2013年第4期271-277,共7页JUSTC
基 金:国家"核高基"重大专项(2009ZX01028-002-003-005);国家自然科学基金(No.60833004)资助
摘 要:Java虚拟机在运行过程中使用即时编译器编译Java程序的热点方法,然后直接执行热点方法的本地代码.锁cache机制允许Java虚拟机将编译方法的本地代码锁在cache中,以提高编译执行时的指令cache命中率.通过分析Java虚拟机中编译方法的调用规律,得到编译方法的活跃时间段、平均大小和内存分布情况.基于编译方法的调用规律,给出Java虚拟机中的动态锁cache优化方法.在Java热点方法的活跃期将其本地代码段锁在cache中,以减少cache失效.最后,在龙芯3A的HotSpot虚拟机上实现了动态锁cache优化方法.实验结果表明,Java虚拟机中的动态锁cache优化方法能够使SPECjvm2008运行时的cache失效次数平均降低8.5%,性能平均提升4%.JVM uses just-in-time compiler(JIT) to improve its performance.JIT compiles the method that has been invoked for a given number of times,and then JVM executes the compiled method when this method is invoked the next time.Cache locking mechanism allows JVM to lock the compiled methods in the cache.This can improve cache performance,because JVM will execute the compiled methods frequently.By analyzing the calling law of the compiled methods in JVM,the calling distribution law,average size and memory distribution of the compiled methods can be obtained.Based on the calling law of the compiled methods,a dynamic cache locking optimization algorithm is proposed,which can lock the active compiled methods in the cache and reduce the cache miss rate when JVM executes the compiled methods.The algorithm has been implemented in HotSpot based on Loongson-3A.Experiment results show that,on average,the dynamic cache locking algorithm reduces the cache miss rate by 8.5% and improves performance by 4% on the benchmark SPECjvm2008.
关 键 词:JAVA虚拟机 CACHE 锁cache机制 即时编译
分 类 号:TP314[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.222.132.108