Invention Grant
- Patent Title: Detecting and remedying memory leaks caused by object reference cycles
-
Application No.: US15340752Application Date: 2016-11-01
-
Publication No.: US10296314B2Publication Date: 2019-05-21
- Inventor: Dino Salvo Distefano , Cristiano Calcagno , Dulma Churchill
- Applicant: Facebook, Inc.
- Applicant Address: US CA Menlo Park
- Assignee: Facebook, Inc.
- Current Assignee: Facebook, Inc.
- Current Assignee Address: US CA Menlo Park
- Agency: FisherBroyles, LLP
- Main IPC: G06F11/36
- IPC: G06F11/36 ; G06F8/41 ; G06F12/02

Abstract:
Exemplary methods, apparatuses, and systems parse programming code to identify instructions within the programming code to allocate objects and instructions within the programming code to create, delete, and/or update references to the objects. Based upon the identified instructions, a model of memory used when the programming code is executed is generated. The model includes representations of the objects and representations of changes to the references to the objects. Based upon the representations in the model, it is determined that each of a plurality of the objects is connected to another of the plurality of objects by one of the references but unreachable by any variable at a point of execution of the programming code. In response to the determination that the plurality of objects is unreachable, a report is generated to flag the unreachable plurality of objects as a potential memory leak for correction.
Public/Granted literature
- US20180121178A1 DETECTING AND REMEDYING MEMORY LEAKS CAUSED BY OBJECT REFERENCE CYCLES Public/Granted day:2018-05-03
Information query