好文档 - 专业文书写作范文服务资料分享网站

一个Windows应用程序的垃圾回收器

天下 分享 时间: 加入收藏 我要投稿 点赞

一个Windows应用程序的垃圾回收器

苗宏伟;钟云鹏

【期刊名称】《计算机技术与发展》 【年(卷),期】2012(022)001

【摘要】It proposes a garbage collector (RT-AGC) to resolve memory leaks in long running Windows applications. RT-AGC uses Mark-Sweep algorithm and makes it have more flexibility by improving the trigger conditions. This collector detects and reclaims garbage memory for non-cooperative applications at run time using PE file structures and Windows API functions by scanning program space. Key algorithm and implementation for this collector is presented. A defective test application is written for verifying the effect of RT-AGC. Experiment proves that the collector can prevent memory leaks effectively.%为减少长期运行的Windows应用程序持续堆内存泄漏而造成的系统性能损失,设计并实现了一个运行时自动垃圾回收器RT-AGC.RT-AGC采用传统Mark-Sweep算法的一个变种,对回收触发条件进行改进,使其具有更大的灵活性.利用Windows下应用程序的存储结构和系统API函数,通过扫描可能存储指针变量的区域,RT-AGC可以在应用程序运行时检测并处理内存泄漏,而不需要对目标应用程序重新编译或链接.文中描述了所采用的关键算法流程和主要实现技术,并编写了测试程序对RT-AGC的回收效果进行验证.实验证明可以有效地抑制应用程序的内存泄漏.

【总页数】4页(17-20)

【关键词】Windows系统;动态内存分配;内存泄漏;垃圾回收;堆内存 【作者】苗宏伟;钟云鹏

【作者单位】天津大学微软.net实验室,天津 300072;装甲兵工程学院控制系,北京 100072 【正文语种】中文 【中图分类】TP399 【文献来源】

https://www.zhangqiaokeyan.com/academic-journal-cn_computer-technology-development_thesis/0201242877489.html 【相关文献】

1.Windows系统下关于硬件驱动程序的通知应用程序设计方法 [J], 徐海龙 2.Windows系统下关于硬件驱动程序的通知应用程序设计方法 [J], 徐海龙 3.在Windows XP中自制热键来启动应用程序 [J], 刘佳

4.Windows应用程序守护进程的实现 [J], 王洋涛; 唐敏; 王媛媛 5.隐藏Windows系统“开始”菜单中的应用程序 [J], 何凯

以上内容为文献基本信息,获取文献全文请下载

一个Windows应用程序的垃圾回收器

一个Windows应用程序的垃圾回收器苗宏伟;钟云鹏【期刊名称】《计算机技术与发展》【年(卷),期】2012(022)001【摘要】Itproposesagarbagecollector(RT-AGC)toresolvememoryleaksinlongrunningWindowsapplicatio
推荐度:
点击下载文档文档为doc格式
50xiz6z21948fsc2a7r62i4cx3q5hp00q42
领取福利

微信扫码领取福利

微信扫码分享