Patents
US 7,761,852 B2#8916398 Most CitedExpiredUnited States (USPTO)Utility

Fast detection of the origins of memory leaks when using pooled resources

11Forward Citations (#8916398 Global)
0.7/yrCitation Velocity (#11038562 Global)
3.30Citation PageRank (#6495389 Global)
15Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

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.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 11.

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A memory leak detection and reporting method comprising the steps performed by a processor of: time stamping allocated ones of resources in a resource pool; identifying calling code segments receiving said allocated resources; detecting memory leaks by inspecting individual timestamps for said allocated resources to determine whether said allocated resources have become overly idle; and, for each allocated resource determined to have become overly idle, reporting an identity of a corresponding one of said calling code segments.

  2. Claim 2Depends on #1

    The method of claim 1 , wherein said identifying step comprises the step of retrieving identities for individual ones of said calling code segments from an associated calling stack when said individual ones of said calling code segments acquire one of said allocated resources.

  3. Claim 3Depends on #1

    The method of claim 1 , further comprisi

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Bernhard Scholz el at. "Symbolic Pointer Analysis for Detecting Memory Leaks", Nov. 1999, ACM Press, vol. 34, Issue 11, pp. 104-113.
  • Heine, David L., A Practical Flow-Sensitive and Context-Sensitive C and C++ Memory Leak Detector, Computer Systems Laboratory, Stanford University, Jun. 2003.
  • Hirzel, Martin et al., On the Usefulness of Type and Liveness Accuracy for Garbage Collection and Leak Detection, ACM Transactions on Programming Languages and Systems, vol. 24, No. 6, Nov. 2002.
  • Martin Hirzel et al. "On the Usefulness of Type and Liveness Accuracy for Garbage Collection and Leak Detection", Nov. 2002, ACM Press, vol. 24, Issue 6, pp. 595-623.
  • Scholz, Bernhard, Symbolic Pointer Analysis for Detecting Memory Leaks, ACM, 2000.