mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 23:18:36 +08:00
fed3da9f03
The search algorithm does not work with the ctz approach at all, if there is a free range of granules that does not fit a specific allocation (i.e. the granule allocation is fragmented) it will cause an infinite loop as the algorithm will try to find free space from the same (free) starting granule, causing an infinite loop. The clz approach works for all cases, it will find the last used granule and the search will continue from the next free granule. Also, offsetting a full GAT must be sizeof(gat[0] - 1), which is 31 in this case. The reason is that the upper level search function increments the value by +1. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Make.defs | ||
mm_gran.h | ||
mm_granalloc.c | ||
mm_grancritical.c | ||
mm_granfree.c | ||
mm_graninfo.c | ||
mm_graninit.c | ||
mm_granrelease.c | ||
mm_granreserve.c | ||
mm_grantable.c | ||
mm_grantable.h | ||
mm_pgalloc.c |