A block is allocated from the free pool by first converting the requested bytes to an index in the bucket array, using the following equation.
当从空闲池分配块时,首先使用以下公式把请求的字节数转换为bucket数组索引。
When a block of memory is returned to the free pool, the bucket index is calculated just like it is done with allocation.
当把内存块返回给空闲池时,像分配时一样计算bucket索引。
应用推荐