×

Detecting and remedying memory leaks caused by object reference cycles

  • US 10,296,314 B2
  • Filed: 11/01/2016
  • Issued: 05/21/2019
  • Est. Priority Date: 11/01/2016
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method comprising:

  • parsing 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;

    generating, based upon the identified instructions, a model of memory used when the programming code is executed, wherein the model includes representations of the objects and representations of changes to the references to the objects;

    detecting, based upon the representations in the model, a potential memory leak by identifying that each of a plurality of the objects is referenced by another of the plurality of the objects but unreachable by any variable at a point of execution of the programming code; and

    generating, in response to the detection of the potential memory leak, a report to flag the potential memory leak, wherein generating the report includes highlighting, in a graphical user interface, a portion of the programming code causing the potential memory leak.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×