发明名称 |
Pre-leak detection scan to identify non-pointer data to be excluded from a leak detection scan |
摘要 |
A computer-implemented method of detecting memory that may be reclaimed from application data objects that are no longer in use. When at least a first virtual memory region is newly committed for heap block storage, a pre-leak detection scan of other virtual memory regions can be performed to identify at least one non-pointer data item in the other virtual memory regions, the non-pointer data item comprising data that corresponds to an address of a memory location within the first virtual memory region, but that is not a memory pointer. A leak detection scan can be performed to identify potential memory pointers, wherein the identified non-pointer data item is excluded from the identified potential memory pointers. A list of leaked heap blocks can be output. Each leaked heap block can exclusively comprise memory locations that do not have a corresponding potential memory pointer. |
申请公布号 |
US9274946(B2) |
申请公布日期 |
2016.03.01 |
申请号 |
US200912649832 |
申请日期 |
2009.12.30 |
申请人 |
INTERNATIONAL BUSINESS MACHINES CORPORATION |
发明人 |
Krauss Kirk J. |
分类号 |
G06F12/02;G06F7/02 |
主分类号 |
G06F12/02 |
代理机构 |
Cuenot, Forsythe & Kim, LLC |
代理人 |
Cuenot, Forsythe & Kim, LLC |
主权项 |
1. Within a system comprising a processor and a memory, a method of detecting memory that may be reclaimed from application data objects that are no longer in use, the method comprising:
when at least a first virtual memory region is newly committed for heap block storage, performing a pre-leak detection scan of other virtual memory regions to identify at least one non-pointer data item in the other virtual memory regions, the non-pointer data item comprising data that corresponds to an address of a memory location within the first virtual memory region, but that is not a memory pointer; performing a leak detection scan identifying potential memory pointers, wherein the identified non-pointer data item is excluded from the identified potential memory pointers; and outputting a list of leaked heap blocks, each leaked heap block exclusively comprising memory locations that do not have a corresponding potential memory pointer. |
地址 |
Armonk NY US |