First, it requires extra management work (allocation and freeing of memory block) wherever a buffer block is required.
首先,它要求在需要缓冲区块的任何地方进行额外的管理工作(分配和释放内存块)。
The two basic aspects of this problem are checking memory corruption and tracing block allocation and release.
两个基本角度是检查内存越界和跟踪内存块分配和释放。
When a block of memory is returned to the free pool, the bucket index is calculated just like it is done with allocation.
当把内存块返回给空闲池时,像分配时一样计算bucket索引。
The memory allocator must give you a 16-byte aligned block of space, because, in general, memory allocation must provide suitable alignment so that the memory can be used for any purpose.
内存分配器必须给你一个16字节对齐块的空间,因为,在一般情况下,内存分配必须提供适当的对齐,内存可用于任何目的。
The memory allocator must give you a 16-byte aligned block of space, because, in general, memory allocation must provide suitable alignment so that the memory can be used for any purpose.
内存分配器必须给你一个16字节对齐块的空间,因为,在一般情况下,内存分配必须提供适当的对齐,内存可用于任何目的。
应用推荐