Detecting and remedying memory leaks caused by object reference cycles
AssigneeFacebook, Inc.
InventorsDino Salvo Distefano, Cristiano Calcagno, Dulma Churchill
Life of this patent
Estimating the term…
Loading patent…
AssigneeFacebook, Inc.
InventorsDino Salvo Distefano, Cristiano Calcagno, Dulma Churchill
Estimating the term…
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.
A computer-implemented method comprising:
A non-transitory computer-readable medium storing instructions, which when executed by a processing device, cause the processing device to perform a method comprising:
An apparatus comprising:
Dependencies are inferred from the claim text.