zephyr/lib/heap
Krzysztof Sychla a51d3c0f74 kernel: heap: Add allocation metadata to allocated_bytes
The allocated_bytes were missing the allocation metadata. Because of that
the sum of free_bytes and allocated_bytes doesn't remain constant after
each allocation. This convention doesn't match glibc's behavior. This
commit changes the chunksz_to_bytes function to include the metadata in the
calculation. The analysis of the mallinfo2 function from glibc has been
done in #92392 Pull Request.

Signed-off-by: Krzysztof Sychla <ksychla@antmicro.com>
2025-07-07 10:08:58 -05: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 lib: heap: rename with files and use _ 2023-12-13 17:27:54 -05:00
heap_validate.c coding guidelines: comply with MISRA Rule 12.1. 2024-06-13 20:28:23 -04:00
heap.c kernel: sys_heap: Fix chunk size request validation 2025-06-06 10:12:19 +02:00
heap.h kernel: heap: Add allocation metadata to allocated_bytes 2025-07-07 10:08:58 -05: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