walnux/mm
Ville Juven fed3da9f03 mm_grantable.c: Fix infinite loop due to memory fragmentation
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.
2024-12-05 20:36:04 +08:00
..
iob mm/iob: fix some comment in https://github.com/apache/nuttx/pull/14764 2024-11-19 15:39:00 +08:00
kasan mm/kasan: extern kasan API only MM_KASAN is enabled 2024-10-25 19:04:14 +08:00
kmap cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
kmm_heap cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
map mm: migrate to SPDX identifier 2024-09-13 08:49:05 +08:00
mempool spinlock: use spin_lock_init replace spin_initialize 2024-11-26 00:02:44 +08:00
mm_gran mm_grantable.c: Fix infinite loop due to memory fragmentation 2024-12-05 20:36:04 +08:00
mm_heap nuttxgdb: fix memdump busyloop when nodesize is 0 2024-12-02 13:43:52 +08:00
shm shm: The limits have been made in Make.defs and remove useless macro in code 2024-09-18 13:42:11 +08:00
tlsf mm: fix tlsf compiler error 2024-11-01 11:44:14 -03:00
ubsan include/nuttx.h: replace all the align macros to nuttx version 2024-10-11 16:55:43 +08:00
umm_heap userspace: Exclude nuttx/arch.h 2024-11-01 16:59:37 +08:00
CMakeLists.txt mm: migrate to SPDX identifier 2024-09-13 08:49:05 +08:00
Kconfig mm/Kconfig: adjust config options order and fix typos 2024-10-16 08:09:43 +08:00
Makefile makefile/build: Delete unnecessary bin and kbin folders 2024-11-10 01:18:26 +08:00