Invention Grant
- Patent Title: Memory leak diagnosis
- Patent Title (中): 内存泄漏诊断
-
Application No.: US12491877Application Date: 2009-06-25
-
Publication No.: US08429620B2Publication Date: 2013-04-23
- Inventor: Ying Chen , Qiming Teng , Xin Hui Li , Ying Li , Tian Cheng Liu
- Applicant: Ying Chen , Qiming Teng , Xin Hui Li , Ying Li , Tian Cheng Liu
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Cantor Colburn LLP
- Agent Dwayne Nelson
- Priority: CN200810131740 20080627
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
A method and an apparatus for diagnosing memory leak. The method includes: tracing the allocation of objects; recording allocation paths and allocation time of each object; giving to each object one unique identifier (ID) corresponding to an allocation path; determining the allocation path to which each object belongs; organizing the objects which are allocated but still not collected, and counting the age generations of the objects of the similar type according to the allocation time of each object; ranking the allocation paths according to the age generations of the surviving objects; and analyzing the ranking of the allocation paths, in which the allocation path with higher rank is more probable to introduce memory leaks. Thus, the suspicious allocation path possibly incurring memory leaks is selected and reported to the user for analysis.
Public/Granted literature
- US20090328007A1 MEMORY LEAK DIAGNOSIS Public/Granted day:2009-12-31
Information query