Invention Grant
- Patent Title: Detecting illegal reuse of memory with low resource impact
- Patent Title (中): 检测非法重复使用资源影响较小的内存
-
Application No.: US11619695Application Date: 2007-01-04
-
Publication No.: US07886118B2Publication Date: 2011-02-08
- Inventor: Michael E. Lyons , Bruce Mealey , Jonathan A. Wildstrom
- Applicant: Michael E. Lyons , Bruce Mealey , Jonathan A. Wildstrom
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Dillon & Yudell LLP
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06F13/00

Abstract:
A method, computer program product, and data processing system for preventing the occurrence of undetectable dangling pointers through memory reallocation are disclosed. Allocated memory regions that are no longer needed are deallocated but are not immediately freed for reallocation, being designated as “retained.” A memory retention metric is computed as a measure of an extent of the retained memory regions in the computer's memory space. Once the memory retention metric exceeds a pre-determined threshold, some or all of the retained memory regions are freed for reuse. In this manner, improper accesses to deallocated memory regions can be detected more easily, since reuse of those regions is delayed, while at the same time excessive resource usage and heap fragmentation is avoided by only retaining deallocated regions for a limited time (determined by the threshold and retention metric chosen).
Public/Granted literature
- US20080168112A1 Detecting Illegal Reuse of Memory with Low Resource Impact Public/Granted day:2008-07-10
Information query