zephyr/lib/heap
Nicolas Pitre 457fa60bfc kernel: mempool: decouple simple alloc from aligned_alloc
When k_malloc() is expressed in terms of k_aligned_alloc() 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.

Also bypass k_heap_malloc() and friends given they're invoked with
K_NO_WAIT. Go directly to sys_heap_*() instead to cut some more unneeded
overhead.

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 lib: added blanks between operators 2024-06-13 20:28:23 -04:00
heap_listener.c
heap_stats.c lib: heap: move heap stats to own file 2023-12-13 17:27:54 -05:00
heap_stress.c
heap_validate.c coding guidelines: comply with MISRA Rule 12.1. 2024-06-13 20:28:23 -04:00
heap.c kernel: mempool: decouple simple alloc from aligned_alloc 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 multi_heap: introduce support for realloc() 2024-11-16 14:02:07 -05:00
shared_multi_heap.c