nuttx/mm/mm_heap
wangbowen6 81d37d0320 mm_memalign: avoid two adjacent free nodes situation.
Original code assumes the previous node in physical must be
ALLOCED, but other thread may free the previous node between
mm_malloc() and mm_lock(), and the original code didn't condsider
this, which will cause two adjacent free nodes situation and this
should not be happened.

This commit will merge the previous node and node if the previous
node is free to avoid the situation discribed above.

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-01-30 11:47:06 +08:00
..
Make.defs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mm_addfreechunk.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mm_brkaddr.c mm: Remove mm_heap_impl_s struct 2021-07-07 04:25:15 -07:00
mm_calloc.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
mm_checkcorruption.c mm/mm_checkcorruption: using mm_foreach to do mm_checkcorruption 2022-02-13 03:20:31 +08:00
mm_extend.c mm/mm_extend: Increase total heap size accordingly 2023-01-19 16:41:43 +08:00
mm_foreach.c mm/heap: Changee mmchunk_handler_t to mm_node_handler_t 2023-01-08 01:25:18 +02:00
mm_free.c Optimize multipe mempool memory space usage 2023-01-18 14:12:45 +08:00
mm_heapmember.c mm: Remove mm_heap_impl_s struct 2021-07-07 04:25:15 -07:00
mm_initialize.c mempool:Calibration total memory statistics 2023-01-18 09:02:33 +01:00
mm_lock.c sched/task/task_getpid: getpid should return process id not thread id 2022-11-17 17:58:08 +08:00
mm_mallinfo.c mempool:change mempool_multiple way of initialization 2023-01-18 14:12:45 +08:00
mm_malloc_size.c Optimize multipe mempool memory space usage 2023-01-18 14:12:45 +08:00
mm_malloc.c mm/mm_heap: do this check in mm_size2ndx 2023-01-28 23:22:20 +02:00
mm_memalign.c mm_memalign: avoid two adjacent free nodes situation. 2023-01-30 11:47:06 +08:00
mm_memdump.c mempool:change mempool_multiple way of initialization 2023-01-18 14:12:45 +08:00
mm_realloc.c Optimize multipe mempool memory space usage 2023-01-18 14:12:45 +08:00
mm_shrinkchunk.c mm/heap: Fix the minor style issue 2023-01-08 01:25:18 +02:00
mm_size2ndx.c mm_size2ndx: using flsl to calculate the ndx 2022-11-23 13:19:41 +08:00
mm_zalloc.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
mm.h Optimize multipe mempool memory space usage 2023-01-18 14:12:45 +08:00