Patents
US 8,959,490 B2#44869703 Most CitedActiveUnited States (USPTO)Utility

Optimizing heap memory usage

2Forward Citations (#44869703 Global)
0.2/yrCitation Velocity (#35846470 Global)
0.89Citation PageRank (#48155066 Global)
31Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Embodiments of the present invention provide a computing system and method to profile a program for finding potential optimization in heap usage by reducing lag and drag in lifetimes of heap memory blocks. The process consists of three steps. First, an instrumentation engine analyzes a given program and inserts additional code at interesting locations to collect needed information. Second, when the instrumented program is executed on a set of test cases, runtime data is collected. Third, since this data is large for a complex and long running program, data is processed to present it to a user in useful ways so that a programmer improves the heap utilization in the program.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer implemented method for optimizing usage of heap memory, the method comprising: loading into memory of a computer by a processor of the computer, existing program code instructions of a computer program; inserting additional program code instructions at predefined locations of the existing program code, the additional program code instructions being configured upon execution to search a header of a heap memory block utilized by the computer program and to identify data associated with lag and drag lifetimes of the heap memory block when used by the computer program; additionally inse

Technical Overview & Description

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

References Cited — Backward Prior Art (31)

PatentTitleYearCitations
US 5,193,180 ASystem for modifying relocatable object code files to monitor accesses to dynamically allocated memory1993249
US 5,335,334 AData processing apparatus having a real memory region with a corresponding fixed memory protection key value and method for allocating memories therefor1994112
US 5,335,344 AMethod for inserting new machine instructions into preexisting machine code to monitor preexisting machine access to memory1994145
US 5,535,329 AMethod and apparatus for modifying relocatable object code files and monitoring programs1996171
US 5,581,696 AMethod using a computer for automatically instrumenting a computer program for dynamic debugging1996150
US 5,613,063 AMethod and apparatus for checking validity of memory operations199766
US 5,835,701 AMethod and apparatus for modifying relocatable object code files and monitoring programs199843
US 5,842,019 AMethod and system for dynamically detecting leaked memory space in a computer program199864
US 5,870,607 AMethod and apparatus for selective replay of computer programs1999138
US 5,950,003 AProfile instrumentation method and profile data collection method1999176
US 5,953,530 AMethod and apparatus for run-time memory access checking and memory leak detection of a multi-threaded program1999253
US 6,112,297 AApparatus and method for processing misaligned load instructions in a processor supporting out of order execution200038
US 6,560,773 B1Method and system for memory leak detection in an object-oriented environment during real-time trace processing2003163
US 6,658,653 B1Debugging methods for heap misuse200353
US 6,718,485 B1Software emulating hardware for analyzing memory references of a computer program200467
US 2004133759 A1Method and apparatus for optimizing heap size, and program and program recording medium thereof—35
US 2005071822 A1Method and apparatus for counting instruction and memory location ranges—28
US 2005144412 A1Overwrite detection diagnostic for memory heap—27
US 7,013,456 B1Profiling execution of computer programs2006138
US 2006085156 A1Method and system for predicting memory leaks from unit testing—41
US 2006123216 A1Locating wasted memory in software applications—14
US 7,100,003 B2Method and apparatus for generating data for use in memory leak detection200613
US 2006265438 A1Leveraging garbage collection to dynamically infer heap invariants—34
US 7,200,731 B2Memory leak detection200710
US 7,373,637 B2Method and apparatus for counting instruction and memory location ranges200819
US 7,415,491 B2Method and apparatus for optimizing heap size, and program and program recording medium thereof200813
US 7,434,020 B2Overwrite detection diagnostic for memory heap200812
US 7,669,189 B1Monitoring memory accesses for computer programs201024

Non-Patent Literature (5)

  • Hastings, R., et al., "Purify: Fast Detection of Memory Leaks and Access Errors," Proceedings of the 1992 Winter USENIX Conference, 1992 [retrieved Sep. 29, 2014], Retrieved from Internet: , pp. 125-136.
  • Hastings, R., et al., “Purify: Fast Detection of Memory Leaks and Access Errors,” Proceedings of the 1992 Winter USENIX Conference, 1992 [retrieved Sep. 29, 2014], Retrieved from Internet: <URL: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.184.8081>, pp. 125-136.
  • Maebe, et al., "Precise detection of memory leaks," W1OS Workshop-26th International Conference on Software Engineering, 2004, pp. 25-31.
  • Maebe, et al., “Precise detection of memory leaks,” W1OS Workshop—26th International Conference on Software Engineering, 2004, pp. 25-31.
  • Pan, Michael, "HUP: A Heap Usage Profiling Tool for Java Programs", Tel-Aviv University [online], 2001 [retrieved Jul. 8, 2011], Retrieved from Internet: , pp. 1-60.