计算机技术与发展2012,Vol.22Issue(1):17-20,4.
一个Windows应用程序的垃圾回收器
A Garbage Collector for Windows Applications
摘要
Abstract
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系统/动态内存分配/内存泄漏/垃圾回收/堆内存Key words
Windows/dynamic memory allocation/memory leaks/garbage collection/heap storage分类
信息技术与安全科学引用本文复制引用
苗宏伟,钟云鹏..一个Windows应用程序的垃圾回收器[J].计算机技术与发展,2012,22(1):17-20,4.基金项目
天津市科技支撑计划重点项目(10ZCGYSF01300) (10ZCGYSF01300)