- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
小 型 微 型 计 算 机 系 统 2008 年 月 第 期
Journal of Chinese Computer Systems Vol.28 No. 2008
即时编译器辅助的垃圾收集中的插桩算法研究
张 昱 1,2 ,袁丽娜1,2
1 (1 中国科学技术大学 计算机科学技术系,安徽 合肥 230027)
2 (2 中国科学院计算机系统结构重点实验室,北京 100080)
E-mail :yuzhang@
摘 要:即时编译器辅助的垃圾收集技术结合显式和自动内存管理的优点,在编译阶段由即时编译器分析应用程序并在
其中插桩显式释放内存的指令,以便垃圾收集器及时回收死亡对象所占用的内存空间,从而减轻垃圾收集器的负担。提出
一种应用于该项技术的插桩算法,它基于控制流中的支配关系并提供不同的插桩策略,保证插桩的正确性和灵活性;它能
够主动获得域引用从而释放对象及其域引用的内存空间。实验表明基于该插桩算法的垃圾收集器能够回收大量的内存空
间,提高Java 程序的执行效率。
关键词:插桩;即时编译器;垃圾收集器;内存管理
中图分类号:TP 文献标识码:A 文章编号 :1000-1220 (2008 )02--
Study on Instrumentation Algorithm for Just-in-time Compiler Assisted Garbage Collection
ZHANG Yu1,2,YUAN Li-na1,2
1 (Department of Computer Science Technology, University of Science Technology of China, Hefei 230027, China)
2 (Key Laboratory of Computer System Architecture, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, 100080)
Abstract: Just-in-time compiler assisted garbage collection (JIT-assisted GC) combines the advantages of explicit memory
management and automatic memory management. Under the framework of JIT-assisted GC, JIT compiler analyses the applications to
find dead objects and their dead points, then instruments the explicit free instructions in compilation time, accordingly garbage
collector could reclaim the spaces owned by those dead objects in time and relieves its load on automatic garbage collection. A new
algorithm on instrumenting free instructions in JIT-assisted-GC is proposed in this paper. It bases on the domination relations in the
control flow and various instrumenting strategies are presented to ensure the validity and flexibility of instrumentation. Moreover, the
object fields which refer to dead objects are detected, and instruction
文档评论(0)