节点文献
内存管理机制的高效实现研究
Research of high efficient implementation of memory management mechanism
【摘要】 为了高效地管理内存,防止内存泄漏、越界访问等问题的出现,在分析传统动态内存管理机制的基础上,提出了一种基于Windows虚拟内存管理的高效动态内存管理机制。通过创建内存管理器来维护虚拟地址空间和处理内存申请和释放请求,改进了传统动态内存分配与回收算法,并在VC++6.0开发平台上实现了该动态内存管理机制。测试结果分析表明,该方法有效降低了申请与释放内存的时间耗费,减少了内存碎片的产生,提高了动态内存管理效率。
【Abstract】 Having analyzed the traditional dynamic memory management,an efficient dynamic memory management method based on Windows virtual memory mechanism is presented aiming to both manage memory efficiently,and avoid the problem of memory leak and access violation.The virtual address space and memory allocation and release are managed by a memory manager.The method improves the traditional memory allocation and release algorithm.And memory management mechanism is implemented on the VC++ 6.0 develo-pment platform.Analysis of test results shows that the method shortens the time consumption of memory allocation and release,reduces generated memory fragments,and improves dynamic memory management efficiency.
【Key words】 memory management; heap; allocation algorithm; free algorithm; memory pool;
- 【文献出处】 计算机工程与设计 ,Computer Engineering and Design , 编辑部邮箱 ,2009年16期
- 【分类号】TP311.52
- 【被引频次】27
- 【下载频次】521