Patent · US Active

Detecting illegal reuse of memory with low resource impact

US7886118B2 · kind B2 · utility

1Cited by
2References
20Claims
0Family size

Assignee

Inventors

Key dates

Filing dateJan 4, 2007
Grant dateFeb 8, 2011
Priority date
Expiry dateMar 25, 2029

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F12/023
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

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).

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.