Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for detecting memory leaks in embedded systems

An embedded system and memory leak technology, which is applied in the field of memory processing, can solve problems such as inflexible configuration, inconvenient use, false alarms and false releases of memory leaks, etc., to improve flexibility, avoid false alarms, and realize partition detection Effect

Active Publication Date: 2011-12-14
HISENSE BROADBAND MULTIMEDIA TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The present invention provides a memory leak detection method for memory leak detection methods in the prior art, which are inflexible in configuration, inconvenient to use, and prone to false alarms and releases of memory leaks in the embedded system software development process. method, using this method, the partition detection of the memory leak of the embedded system can be realized, the method is flexible, and the detection efficiency is high

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
  • A method for detecting memory leaks in embedded systems
  • A method for detecting memory leaks in embedded systems
  • A method for detecting memory leaks in embedded systems

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0036] Since the embedded system software generally keeps running after startup, and there is no program end, if the existing memory leak detection method is adopted, it is not only inconvenient to use, but also prone to problems such as false positives and false releases. Aiming at the above-mentioned characteristics of the embedded system, the present invention provides a memory leak detection method applied to the embedded system, the core of the method is to save the memory release range type information corresponding to the memory allocated by the memory allocation function during the memory allocation process and memory release location information, and in the memory release process, it will be judged that the released memory release is valid according to the memory release range type information and memory release location information, and the memory re...

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 discloses a method for detecting memory leaks in an embedded system, which includes the steps of tracking the process of memory allocation and tracking the process of memory release, and the step of detecting memory leaks according to the tracking results; the process of memory allocation includes The parameters of the allocation function obtain the memory release range type information and memory release location information corresponding to the memory allocated by the memory allocation function and save them; the process of memory release includes the memory release range type information and memory release The location information determines whether the memory is valid, and releases the memory when the memory is valid. The memory leak detection method of the present invention can realize the partition detection of the embedded system memory leak, the method is flexible in use, and the detection efficiency is high.

Description

technical field [0001] The invention relates to a memory processing method, in particular to a method for detecting memory leakage of an embedded system, and belongs to the technical field of embedded systems. Background technique [0002] For memory leaks, it generally refers to the leak of heap memory. Heap memory refers to the memory allocated from the heap by using some specific functions during the running of the application, and released by specific functions after use. If the application does not release the heap memory after using it, the memory cannot be used again, and the memory is considered to be leaked. [0003] According to the way it occurs, memory leaks can be divided into the following four categories: [0004] (1) Frequent memory leaks: The function code with memory leaks will be executed multiple times, and each time it is executed, a piece of memory will leak. [0005] (2) Occasional memory leaks: Function codes with memory leaks can only occur in cer...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 田友强
Owner HISENSE BROADBAND MULTIMEDIA TECH