Detecting Illegal Reuse of Memory with Low Resource Impact
AssigneeInternational Business Machines Corporation
InventorsMichael E. Lyons, Bruce Mealey, Jonathan A. Wildstrom
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsMichael E. Lyons, Bruce Mealey, Jonathan A. Wildstrom
Estimating the term…
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).
A computer-implemented method comprising:
A computer program product in a computer-readable medium comprising functional descriptive material that, when executed by a computer, causes the computer to perform actions that include:
A data processing system comprising:
Dependencies are inferred from the claim text.