Fast detection of the origins of memory leaks when using pooled resources
    11.
    发明授权
    Fast detection of the origins of memory leaks when using pooled resources 失效
    使用合并资源时快速检测内存泄漏的起因

    公开(公告)号:US07761852B2

    公开(公告)日:2010-07-20

    申请号:US10723979

    申请日:2003-11-26

    IPC分类号: G06F9/44

    CPC分类号: G06F9/5016

    摘要: The present invention is a method, system and apparatus for memory leak detection and reporting. In a preferred method of the invention, allocated ones of resources in a resource pool can be time stamped upon allocation and calling code segments receiving the allocated resources can be identified. Memory leaks can be detected by inspecting individual timestamps for the allocated resources to determine whether the allocated resources have become overly idle. Notably, the identifying step can include the step of retrieving identities for individual ones of the calling code segments from an associated calling stack when the individual ones of the calling code segments acquire one of the allocated resources. In any case, for each allocated resource determined to have become overly idle, an identity of a corresponding one of the calling code segments can be reported.

    摘要翻译: 本发明是用于存储器泄漏检测和报告的方法,系统和装置。 在本发明的优选方法中,资源池中的资源分配的资源可以在分配时被时间戳,并且可以识别接收分配的资源的呼叫代码段。 可以通过检查分配的资源的各个时间戳来检测内存泄漏,以确定所分配的资源是否变得过度空闲。 值得注意的是,识别步骤可以包括当各个主叫代码段中的一个主叫代码段获取所分配的资源之一时从相关联的主叫栈中检索各个主叫代码段的标识的步骤。 在任何情况下,对于被确定已变得过度空闲的每个分配的资源,可以报告相应的一个主叫代码段的标识。