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:
parent
f2f198663e
commit
92565e9246
5 changed files with 309 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue