zephyr/lib
Andy Ross d37370301c k_heap: Clamp to a minimum heap size
The K_HEAP_DEFINE macro would allow users to specify heaps that are
too small, leading to potential corruption events (though at least
there were __ASSERTs that would catch this at runtime if enabled).

It would be nice to put the logic to compute this value into the heap
code, but that isn't available in kernel.h (and we don't want to pull
it in as this header is already WAY to thick).  So instead we just
hand-compute and document the choice.  We can address bitrot problems
with a test.

(Tweaks to heap size asserts and correct size bounds from Nicolas Pitre)

Fixes #33009

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-05-20 17:52:21 -04:00
..
gui lib: gui: lvgl: Fix logging macro usage 2021-04-22 15:29:15 -05:00
libc libc: minimal: Add EOVERFLOW 2021-05-17 09:11:15 -04:00
open-amp
os k_heap: Clamp to a minimum heap size 2021-05-20 17:52:21 -04:00
posix posix: timer: match implementation to declaration 2021-03-29 07:52:42 -04:00
util lib: add freebsd getopt library 2021-03-01 09:50:32 -05:00
CMakeLists.txt portability: move cmsis APIs to subsys/portability 2021-04-20 08:45:05 -04:00
Kconfig portability: move cmsis APIs to subsys/portability 2021-04-20 08:45:05 -04:00