CN1320863A - Method for quick memory allocation and release in real-time system - Google Patents
Method for quick memory allocation and release in real-time system Download PDFInfo
- Publication number
- CN1320863A CN1320863A CN00108090A CN00108090A CN1320863A CN 1320863 A CN1320863 A CN 1320863A CN 00108090 A CN00108090 A CN 00108090A CN 00108090 A CN00108090 A CN 00108090A CN 1320863 A CN1320863 A CN 1320863A
- Authority
- CN
- China
- Prior art keywords
- memory
- memory block
- control unit
- real
- pointer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Memory System (AREA)
Abstract
本发明的一种实时系统中内存快速分配与释放的方法,申请内存分配时,根据输入的申请内存块大小size,得到内存控制单元序号n=二进制数(size-1)的有效位数,该单元n对应内存区内的内存块大小bsize=2n字节,由此快速定位到所需内存块;释放内存块时,根据内存块指针参数,利用该内存块头部预留指针空间中的内存控制单元的指向,得到该内存块所属内存区,快速释放该内存块。本发明方法用于指令以流水线作业的芯片,效率提高尤其显著。A method for fast allocation and release of memory in a real-time system of the present invention, when applying for memory allocation, according to the input application memory block size size, the effective number of bits of the memory control unit serial number n=binary number (size-1) is obtained, the Unit n corresponds to the size of the memory block in the memory area bsize=2 n bytes, so that the required memory block can be quickly located; when the memory block is released, according to the memory block pointer parameter, use the reserved pointer space in the head of the memory block The pointer of the memory control unit obtains the memory area to which the memory block belongs, and quickly releases the memory block. The method of the present invention is used for chips whose instructions are operated in a pipeline, and the efficiency is particularly improved significantly.
Description
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001080903A CN1171152C (en) | 2000-06-13 | 2000-06-13 | A Method of Fast Memory Allocation and Release in Real-time System |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB001080903A CN1171152C (en) | 2000-06-13 | 2000-06-13 | A Method of Fast Memory Allocation and Release in Real-time System |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1320863A true CN1320863A (en) | 2001-11-07 |
CN1171152C CN1171152C (en) | 2004-10-13 |
Family
ID=4579127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB001080903A Expired - Fee Related CN1171152C (en) | 2000-06-13 | 2000-06-13 | A Method of Fast Memory Allocation and Release in Real-time System |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1171152C (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1303534C (en) * | 2003-03-03 | 2007-03-07 | 华为技术有限公司 | Memory pool managing method |
CN1307558C (en) * | 2001-12-29 | 2007-03-28 | 中兴通讯股份有限公司 | Virtual internal storage allocating and managing method of subsystem in communication system |
CN100478916C (en) * | 2004-09-24 | 2009-04-15 | 上海贝尔阿尔卡特股份有限公司 | Internal storage management system and method |
CN108108307A (en) * | 2016-11-24 | 2018-06-01 | 中移(杭州)信息技术有限公司 | A kind of method for processing resource and terminal |
US10241715B2 (en) | 2014-01-31 | 2019-03-26 | Hewlett Packard Enterprise Development Lp | Rendering data invalid in a memory array |
-
2000
- 2000-06-13 CN CNB001080903A patent/CN1171152C/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1307558C (en) * | 2001-12-29 | 2007-03-28 | 中兴通讯股份有限公司 | Virtual internal storage allocating and managing method of subsystem in communication system |
CN1303534C (en) * | 2003-03-03 | 2007-03-07 | 华为技术有限公司 | Memory pool managing method |
CN100478916C (en) * | 2004-09-24 | 2009-04-15 | 上海贝尔阿尔卡特股份有限公司 | Internal storage management system and method |
US10241715B2 (en) | 2014-01-31 | 2019-03-26 | Hewlett Packard Enterprise Development Lp | Rendering data invalid in a memory array |
CN108108307A (en) * | 2016-11-24 | 2018-06-01 | 中移(杭州)信息技术有限公司 | A kind of method for processing resource and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN1171152C (en) | 2004-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1266590C (en) | Progress pole/linear procedure pole management method of construction member oriented backbone system internal core | |
Larson et al. | Memory allocation for long-running server applications | |
US6119214A (en) | Method for allocation of address space in a virtual memory system | |
CN1183453C (en) | Internal storage management system and its distribution method | |
US8510710B2 (en) | System and method of using pooled thread-local character arrays | |
CN1271524C (en) | Static internal storage management method | |
US5021946A (en) | Mostly contiguous file allocation technique involving file extension | |
CA2556083A1 (en) | Memory allocation | |
US6874062B1 (en) | System and method for utilizing a hierarchical bitmap structure for locating a set of contiguous ordered search items having a common attribute | |
US20090006502A1 (en) | Application-Specific Heap Management | |
US7882505B2 (en) | Method and apparatus for switching between per-thread and per-processor resource pools in multi-threaded programs | |
CN103186469A (en) | Memory allocation method and device, and memory recovery method | |
US20040128463A1 (en) | Apparatus and method for controlling memory allocation for variable size packets | |
US5963982A (en) | Defragmentation of stored data without pointer indirection | |
CN101950273A (en) | Dynamic management method of DSP data area | |
US6219772B1 (en) | Method for efficient memory allocation of small data blocks | |
CN1320863A (en) | Method for quick memory allocation and release in real-time system | |
US20020091904A1 (en) | Methods, systems, and computer program products for memory pool management using variable size sub-pools | |
CN102968378A (en) | Method, device and system for allocating and releasing memory | |
CN101546292A (en) | Memory access method and device | |
CN104536773B (en) | Embedded software dynamic memory recovery method based on internal memory scanning | |
US6976021B2 (en) | Method, system, and computer program product for managing a re-usable resource with linked list groups | |
CN1181434C (en) | Adaptive Dynamic Memory Management Method | |
CN1627262A (en) | Memory updating system for field device | |
CN1321377C (en) | Control method of smart card storage environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
ASS | Succession or assignment of patent right |
Owner name: BEIJING POWER ECONOMIC RESEARCH INSTITUTE Free format text: FORMER OWNER: ZTE CORPORATION Effective date: 20140129 Owner name: STATE GRID BEIJING ELECTRIC POWER COMPANY CHINA TE Effective date: 20140129 |
|
COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 100055 XICHENG, BEIJING |
|
TR01 | Transfer of patent right |
Effective date of registration: 20140129 Address after: 100055 No. 15 West Street, Guanganmen station, Beijing, Xicheng District Patentee after: State Power Economic Research Institute Patentee after: State Grid Beijing Electric Power Company Patentee after: CHINA TECHNOLOGY EXCHANGE CO., LTD. Address before: 518057 Department of law, Zhongxing building, South Science and technology road, Shenzhen hi tech Industrial Park, Guangdong Patentee before: ZTE Corporation |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20041013 Termination date: 20150613 |
|
EXPY | Termination of patent right or utility model |