5c0a5a6627
The memalign is special to multiple mempool because multiple mempool doesn't support split and shrink chunk operate. So When you alloc a memory block and find an aligned address in this block, you need to occupy 8 bytes before the address to save the address of the padding size and pool to ensure correct use in realloc and free operations. So we will use bit1 in the previous address of the address to represent that it is applied by memalign. Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> |
||
---|---|---|
.. | ||
Make.defs | ||
mempool_multiple.c | ||
mempool_procfs.c | ||
mempool.c |