Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Validity detection method of memory block

A detection method, memory block technology, applied in the direction of memory address/allocation/relocation, detection of faulty computer hardware, etc.

Active Publication Date: 2012-11-21
PHICOMM (SHANGHAI) CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to overcome the above-mentioned deficiencies, and provide a method that can conveniently detect memory bad blocks that appear in the memory management system and prompt the location of the bad blocks without adding any tags and consuming extra memory. and information memory block validity detection method

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
  • Validity detection method of memory block
  • Validity detection method of memory block
  • Validity detection method of memory block

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0025] The validity detection method of the memory block of the present invention is used to detect the validity of the memory block in the embedded system, and the mechanism of the validity detection method of the memory block is implanted in the embedded system, thereby detecting the bad block occurring in the memory of the embedded system, The bad block may be caused by out-of-bounds memory block access, or may be caused by direct memory pointer access destroying the header information of the memory block. When a bad block is found, it will prompt the location of the bad block and the specific information of the bad block.

[0026] There are two types of memory blocks in the memory management system, including: ALLOC blocks and FREE blocks. The ALLOC block is a used and allocated memory block, referred to as an allocated block in this article; the F...

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 validity detection method of a memory block, which mainly comprises the following steps of: obtaining a start address and an end address of a memory pool in a memory management system; retrieving AVL (Automatic Vehicle Location) trees of free memory blocks in the memory management system, collecting the information of all the free memory blocks, storing in an array manner and sequencing according to the addresses of the memory blocks from low to high; judging whether a free block exists, detecting the validity of the current free block if the free block exists and finishing detection if the free block does not exist; and taking the memory block as a poor block if the memory block can not pass the validity test, prompting the position and the detailed information of the poor block and obtaining the circle detection of a next free block. The memory block validity detection method has the beneficial effects that on the basis that the existing organization structure of the memory block is not expanded, and any mark consumption additional memory is not required to be increased, the poor memory block existing in the memory management system can be effectively detected, and the position and the information of the poor block are prompted to facilitate a developer to position the existing reason of the poor block.

Description

【Technical field】 [0001] The invention relates to a method for detecting the validity of a memory block, in particular to a method for detecting the validity of a memory block in an embedded system. 【Background technique】 [0002] The method for detecting the validity of memory blocks, for example, the detection method for memory access out of bounds, the solution in the prior art is often to set various marks when accessing by expanding the memory block organization structure in the memory management system, and via a special intermediate interface. During the detection process, by checking the extended memory block structure mark, it is judged whether the memory is out of bounds. [0003] For embedded systems, memory resources are very precious. By expanding the memory block organization structure and setting various flags, it is possible to detect out-of-bounds access to a certain extent, but it will inevitably increase the additional consumption of memory resources. As...

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/22G06F12/02
Inventor 车任秋罗德贵周琳
Owner PHICOMM (SHANGHAI) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products