期刊文献+

C^(++)并发引用计数垃圾收集器实现

The Implementation of Concurrent Reference-counting Garbage Collector for C^(++)
下载PDF
导出
摘要 引用计数垃圾收集器通常具有增量式和实时性特征,但存在垃圾收集器中断执行程序时间较长的情况。本文实现了一个并发引用计数垃圾收集器,使得垃圾收集器和工作程序并发执行,避免了垃圾收集器中断执行程序。基于C++的语法标准和应用编程接口,无需修改编译器和存储分配器,且收集器和工作程序的同步是锁免除的。Linux操作系统中的实现和实验表明,收集器有极低(低于0.2%)的处理器损失。 Reference-counting garbage collector has incremental nature of most of its operation and can easily satisfy real-time requirements. However, there are cases in which garbage collection interruptions can be long. This paper implements a concurrent reference-counting garbage collector for C + + , which can avoid the cases where collector internlpts mutators. The implementation is based on C = + grammar standards and application programming interfaces, so it is no need to modify compiler and memory allocator. The cooperation between collector and mutator is lock-free. The implementation and experiments in Linux OS show that the CPU cost is extreme low( less than 0.2% ).
作者 贺建立
出处 《安庆师范学院学报(自然科学版)》 2014年第3期54-58,共5页 Journal of Anqing Teachers College(Natural Science Edition)
关键词 引用计数 垃圾收集 工作程序 并发 锁免除 reference-counting, garbage collector, mutator, concurrent, lock-free
  • 相关文献

参考文献9

  • 1M. Hertz, Y. Feng, E. D. Berger. Garbage collection without paging [ C ]//Proceedings of the 2005 ACM SIGPLAN conference on programming language design and implementation, 2005,40 (7) : 143 - 153.
  • 2Jacques Conhen. Garbage collection of linked data structures[ J ]. ACM computing surveys , 1981,13 ( 3 ) :341 - 367.
  • 3Yossi, Levanoni, Erez Petrank. An on - the - fly reference - count- ing garbage collector for java [ J]. Transactions on programming languages and systems, 2006,28( 1 ):1 -69.
  • 4Hezi Azatchi, Yossi Levanoni, Harel Paz, Erez Petrank. An on - the -fly mark and sweep garbage collector based on sliding views [ C]//Proceedings of the 18th annual ACM SIGPLAN conference on Object - oriented programing, systems, languages, and appli- cations. November 2003.
  • 5Martin Kero,Johan Nordlander,Per Lindgren. A correct and use- ful incremental copying garbage collector[ C ]//Proceedings of the 6th international symposium on memory management. October 2007.
  • 6NMatthew,RStones.Linux程序设计[M].北京:机械工业出版社,2002:1-757.
  • 7DpBovet,MCesati.深入理解Linux内核[M].北京:中国电力出版社,2012:1-823.
  • 8Sha, L. , Rajkumar, R. , and Lehoczky, J. P.. Priority inherit- ance protocols: an approach to real - time synchronization [ J ]. IEEE transactions on computers,1990, 39(9) : 1175 -1185.
  • 9Mckenney, P. E. Exploiting deferred destruction : an analysis of read -copy- update techniques in operating system kernels[ D]. OGI School of Science and Engineering at Oregon Health and Sci- ences University, 2004.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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