期刊文献+

基于生命期预测的分代式垃圾收集算法 被引量:2

Generational Garbage Collection Algorithm Based on Lifespan Prediction
下载PDF
导出
摘要 针对嵌入式虚拟机中垃圾收集效率低的问题,提出一种新的分代式垃圾收集方法。通过对分配对象的生命期进行预测,将生命期长的对象直接分配到年长代,减少了从年轻代到年长代复制的数量,进而缩短垃圾回收的执行时间。在分代内收集方面,年轻代实现一种对象分配和垃圾收集同时进行的非暂停模式,年长代使用lazybuddy算法结合mark-sw eep算法的综合策略,实现空间的快速分配和回收,既避免了对象拷贝操作,又控制了内存碎片数量。实验结果表明,该算法能够使垃圾收集时间减少约23.9%,用例运行时间减少约17.2%,系统整体执行性能得到明显提升。 For the Garbage Collection (GC) low efficiency in embedded virtual machine environment, this paper proposes an improved generational GC algorithm based on lifespan prediction. Through the prediction of object' s lifespan, objects predicted to be long-lived are allocated directly into the old generation, and the need to copy such objects from the young generation is eliminated, thereby reducing the execution time of GC. In young generation, this paper adopts a kind of un-stop-the-world strategy which objects allocation and promotion perform concurrently. In old generation, it uses lazy-buddy algorithm combining with mark-sweep algorithm to achieve fast allocation and recovery. It not only avoids the copy operation, but also controls the amount of memory fragmentation. Experimental results show that, with this algorithm, the GC time decreases by about 23. 9% and the program running time decreases by about 17.2% ,the overall system execution performance is significantly improved.
出处 《计算机工程》 CAS CSCD 北大核心 2015年第7期71-74,81,共5页 Computer Engineering
基金 江苏高校优势学科建设工程基金资助项目(PAPD) 江苏省产学研前瞻性联合研究基金资助项目(BY2012056)
关键词 虚拟机 垃圾收集 生命期预测 分代 Lazy—buddy算法 Mark—sweep算法 virtual machine Garbage Collection ( GC ) lifespan prediction generation Lazy-buddy algorithm Marksweep algorithm
  • 相关文献

参考文献12

  • 1Smith J E,Nair R.虚拟机系统与进程的通用平台[M].北京:机械工业出版社,2009.
  • 2Jones R,Hosking A,Moss E.The Garbage Collection Handbook:The Art of Autom atic Mem ory Managem ent[M].[S.1.]:Chapm an&Hall/CRC,2011.
  • 3Xu Xiaoliang,Shen Jiang.Research on Stack-allocation Based JVM Garbage Collection[J].Advanced Computer Theory and Engineering,2010,(2):346-349.
  • 4Liu S,Tang J,Wang L,et al.Packer:Parallel Garbage Collection Based on Virtual Spaces[J].Computers,2012,61(11):1611-1623.
  • 5Libic P,Bulej L,Horky V,et al.On the Limits of Modeling Generational Garbage Collector Performance[C]//Proceedings of the 5th ACM/SPEC International Conference on Performance Engineering.New York,USA:ACM Press,2014:15-26.
  • 6Zhao X,Nakamura S,Nakagawa T.Optimal Tenuring and Major Collection Times for a Generational Garbage Collector[J].Asia-Pacific Journal of Operational Research,2012,29(3):50-59.
  • 7郑磊,张欢欢,李建华.基于区域标记的动态分代垃圾收集算法[J].华东理工大学学报(自然科学版),2011,37(2):218-223. 被引量:2
  • 8吴志军,何加铭,曾兴斌,史智慧.基于嵌入式Java虚拟机的垃圾收集优化算法[J].计算机工程,2012,38(7):46-48. 被引量:4
  • 9Singer J,Brown G,Lujan M,et al.Towards Intelligent Analysis Techniques for Object Pretenuring[C]//Proceedings of the 5th International Symposium on Principles and Practice of Programming in Java.New York,USA:ACM Press,2007:203-208.
  • 10Li Jingmei,Zhang Bo.Garbage Collection Algorithm Based on Embedded KVM[J].M ultimedia Technology,2011,11(1):3535-3538.

二级参考文献17

  • 1谌宁,覃征.基于嵌入式Java虚拟机的垃圾回收算法[J].计算机应用,2005,25(1):218-219. 被引量:4
  • 2王凌飞,王保保.Java虚拟机内存管理分析[J].现代电子技术,2007,30(5):172-174. 被引量:6
  • 3Witawas S, Chang J M. Do generational schemes improve the garbage collection efficlency[C] // Proceedings of the 2000 IEEE International Symposium on Performance Analysis of Systems and Software. Austin, USA: Computer Society, 2000:8-63.
  • 4Richard J, Rafael L. Garbage Collection Algorithms for Automatic Dynamic Memory Management [M]. New York: John, Wiley&Sons, 2002: 143-180.
  • 5David A B, Benjamin G Z. Garbage collection using a dynamic threatening boundary[J]. ACM SIGPLAN Notices, 1995:30 (6):301-314.
  • 6Blackburn S M, Mckinley K S. Immix: A mark-region gar-bage collector with space efficiency, fast collection,and mutator performance[C]// Proceedings of the 2008 ACM SIGPLAN Conference on Programming Language Design and Implementation(PLDI'08). Tucson, Arizona, USA :ACM Press, 2008: 22-32.
  • 7Blackburn S M, Cheng Perry, McKinley K S. Myths and realities:The performance impact of garbage collection[J].ACM SIGMETRICS Performance Evaluation Review, 2004, 32 (1) : 25-36.
  • 8Blackburn S M, Cheng Perry, McKinley K S. Oil and water? high performance garbage collection in Java with MMTK[C]// Proceedings of the 26th International Conference on Software Engineering (ICSE'04) . USA:ACM Press,2004:137-146.
  • 9刘世俊;陈培正;张浩明.Java虚拟机的垃圾收集机制[J]科技信息,2008(21):68-69.
  • 10刘健培.嵌入式Java虚拟机的垃圾回收算法的研究.

共引文献6

同被引文献7

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部