Memory leak detection method and device

A memory leak and device technology, applied in the computer field, can solve problems such as reducing computer performance and reducing the work efficiency of developers, and achieves the effect of reducing false negatives and false positives, and improving quality and efficiency.

Active Publication Date: 2021-03-09
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In order to confirm whether it is a false positive, the developer needs to verify it twice, thereby reducin

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory leak detection method and device
  • Memory leak detection method and device
  • Memory leak detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0050] Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of a method for detecting memory leaks. figure 1 Shown is a schematic flow chart of the method.

[0051] like figure 1 As shown in , the method may include the following steps:

[0052] S1 traverses the classes contained in the project, and records the classes that may have memory leak risks and the risky member variables in the classes to form a risk class diagram. For classes that do not have memory leak risks, they can be treated as ordinary variables, no need additional attention;

[0053] S2 traverses all the functions contained in the project, and constructs a linked list betwe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a memory leak detection method and device, and the method comprises the steps: traversing classes contained in a project, and recording classes possibly having memory leak risksand member variables having risks in the classes, so as to form a risk class diagram; traversing all functions contained in the project, and constructing a linked list between function calls according to a call relationship between the functions to form a function linked list; and detecting memory leakage existing in the project based on the risk class diagram and the function linked list. By using the method of the invention, missing report and false report in memory leak detection can be reduced, and the quality and efficiency of scanning and auditing memory leak are improved.

Description

technical field [0001] This field relates to the computer field, and more specifically relates to a memory leak detection method and device. Background technique [0002] A memory leak is the heap memory that has been dynamically allocated in the program is not released or cannot be released for some reason, resulting in a waste of memory. Memory leaks may reduce the performance of computers by reducing the amount of available memory, and even cause all or part of the equipment to stop working normally or application programs to crash, bringing serious security risks to enterprises and customers. [0003] Memory leaks are stealthy, cumulative, and harder to detect. With the increasing demands of computer applications, the problem of effectively allocating and releasing memory and preventing memory leaks is becoming more and more prominent. Static scanning and dynamic execution are commonly used to detect memory leaks, but there are cases of false negatives or false negativ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
CPCG06F11/366
Inventor 闫利华
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products