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

Ems memory leakage testing method in communication apparatus system

A memory leak and detection method technology, which is applied in the field of memory leak detection in optical communication equipment systems, can solve problems such as unusable, difficult to determine the life cycle of memory blocks, and difficult to find, so as to reduce misjudgment, increase application time, The effect of great flexibility

Inactive Publication Date: 2009-06-24
ZTE CORP
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] At present, memory leaks are generally detected by using software tools and defining the lifetime of memory blocks, but this has several shortcomings
First, most of these tools are based on the Windows platform, and applications must be ported to the Windows platform before they can be used.
Second, these tools can only be used during the testing phase of the application, not when the application is moved to run on the communication device
Some memory leaks are difficult to find in the testing phase, and often only appear in actual use
Third, in many cases, the lifetime of a memory block is difficult to determine. Some programs may need to use a memory block without releasing it. By defining the lifetime of a memory block, misjudgment will occur.

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
  • Ems memory leakage testing method in communication apparatus system
  • Ems memory leakage testing method in communication apparatus system
  • Ems memory leakage testing method in communication apparatus system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention comprehensively judges from the time and space (the location of the application memory block, that is, the file name and the line number where the code of the application memory block is located) whether the occurrence memory leak. The judgment criterion is that the usage time of the memory block exceeds the usage period, the number of memory blocks requested from the same location is greater than or equal to the memory block leak threshold, and the location of the requested memory block is not in the filter detection table.

[0029] The concrete steps of the method provided by the present invention are as follows:

[0030] The first step is to define the usage period of the memory block, the memory block leak threshold and the detection filter table. The usage period of the memory block is the estimated time that the program will use after applying for the memory block, such as one hour. From the moment the memory block is allocated, if the memo...

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 present invention relates to a detection method for memory leakage, having the following steps: step 1, the present invention defines the usage period as well as the leakage threshold value of a memory block and detects the parameter of a filter meter, which is used to provide basis for memory leakage detection; step 2, the present invention records the information of a request memory block, which is used to record the use information of the memory block; step 3, the present invention executes leakage detection to the parameter, which is used to detect whether memory leaks or not. The adoption of the method provided by the present invention can accurately detect memory leakage from time and space, and has very great flexibility.

Description

technical field [0001] The invention relates to a memory leak detection method in a communication device system, in particular to a memory leak detection method in an optical communication device system. Background technique [0002] A memory leak means that memory is allocated for use by a program, but the program does not release the memory after using it, resulting in the allocated memory being unable to be recycled. As the program runs, the available memory in the system will become less and less, causing the system to be paralyzed due to insufficient memory, causing serious impact. [0003] Generally, an embedded system runs in a communication device, and the memory resource of the system is precious and limited. The software on this system is generally required to run continuously for a long time. As long as even a small part of the memory is leaked, it may cause insufficient memory of the system over time, and eventually paralyze, resulting in interruption of communi...

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/34G06F11/36
Inventor 黄海伦李小伟
Owner ZTE CORP