Optimization and Encapsulating of Small Object Memory Allocation in C

YE Nian-yu · Ordnance Industry Automation · 2004

The allocation system of small object memory based on STL code consists of 4 layer structures. Bottom Chunk encapsulates and manages memory, when memory block was asked, allocator function in secondary layer examined Chunk pointer or linearity looked up to confirm if memory block can guarantee point to new chunk node. After asked allocation, third layer automatically selected allocation memory in secondary layer or sent to ::operator new? Fourth layer carried whole new and delete operators, successive object memory was allocated according to defining method, and optimization operation of encapsulating memory allocation for object-orientation was realized.

Read the paper · More papers on PaperTik