zephyr/lib/heap
Nicolas Pitre 11021cdd4f kernel: sys_heap: decouple realloc from aligned_realloc
When sys_heap_realloc() is expressed in terms of sys_heap_aligned_realloc()
it invokes a longer aligned allocation code path with an extra runtime
overhead even though no alignment is necessary.

Let's reference and invoke the aligned allocation code path only when an
actual aligned allocation is requested. This opens the possibility for
the linker to garbage-collect the aligning code otherwise.

Improve realloc documentation while at it.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-04-01 22:13:04 +02:00
..
CMakeLists.txt kernel: sys_heap: stats: save heap pointers to an array during init 2025-01-23 16:37:33 +01:00
heap_array.c kernel: sys_heap: stats: save heap pointers to an array during init 2025-01-23 16:37:33 +01:00
heap_info.c
heap_listener.c
heap_stats.c
heap_stress.c
heap_validate.c
heap.c kernel: sys_heap: decouple realloc from aligned_realloc 2025-04-01 22:13:04 +02:00
heap.h lib: fix typo in multiple directories 2025-01-28 00:06:18 +01:00
Kconfig kernel: sys_heap: stats: save heap pointers to an array during init 2025-01-23 16:37:33 +01:00
multi_heap.c
shared_multi_heap.c