摘要
在μC/OSII中,当应用任务在申请到的内存块中产生了非法指针,并且指针地址指向了空闲内存块头结构区时(前几个字节),空闲链表将会被破坏。为解决这一隐患,将控制信息与用户空间独立存放。该文通过扩展内存块定位字节至16位,得到一种能够区分1024个不同内存块的一级内存管理算法。
μC/OSII, if the point in the memory block applied by the application task is illegal and its address points the first several bytes of the head free memory block, the free memory block list is destroyed. In order to solve such problem, the control information and user space are stored separately. This paper introduces a first-level memory management algorithm which is able to distinguish 1 024 different memory blocks by extending the memory block position bytes to 16 bits.
出处
《计算机工程》
CAS
CSCD
北大核心
2007年第9期82-83,86,共3页
Computer Engineering
基金
河北省教育厅科研基金资助项目(2004407)