发明申请
- 专利标题: MEMORY LEAK DIAGNOSIS
- 专利标题(中): 记忆缺陷诊断
-
申请号: US12491877申请日: 2009-06-25
-
公开(公告)号: US20090328007A1公开(公告)日: 2009-12-31
- 发明人: Ying Chen , Qiming Teng , Xin Hui Li , Ying Li , Tian Cheng Liu
- 申请人: Ying Chen , Qiming Teng , Xin Hui Li , Ying Li , Tian Cheng Liu
- 申请人地址: US NY Yorktown Heights
- 专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人地址: US NY Yorktown Heights
- 优先权: CN200810131740.3 20080627
- 主分类号: G06F11/36
- IPC分类号: G06F11/36 ; G06F9/44
摘要:
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.
公开/授权文献
- US08429620B2 Memory leak diagnosis 公开/授权日:2013-04-23
信息查询