1
0
Fork 0
forked from len0rd/rockbox

buflib: Add malloc-backed buflib

This is intended for improving the effectiveness of tools like
ASAN when debugging memory errors in the sim. It's not meant to
be a serious allocator for hosted targets.

Enable it by changing the buflib backend in config.h.

Change-Id: I0cf23cefa47ee35dede7b49e0e5b72dac60e8d3e
This commit is contained in:
Aidan MacDonald 2023-01-02 22:48:07 +00:00
parent f2f198663e
commit 92565e9246
5 changed files with 309 additions and 0 deletions

View file

@ -6,6 +6,8 @@ events.c
backlight.c
#if CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MEMPOOL
buflib_mempool.c
#elif CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MALLOC
buflib_malloc.c
#endif
core_alloc.c
general.c