Skip to content

Commit

Permalink
libutils: refactor the MDBG malloc functions
Browse files Browse the repository at this point in the history
Replace the MDBG malloc functions and macros with a new function
__mdbg_alloc() handling all the memory allocations similar to
mem_alloc(). The old MDBG macros are replace by new macros calling
__mdbg_alloc().

mem_alloc(), mem_alloc_unlocked(), and mem_free() are updated to handle
configuration with and without MDBG, removing the all the ENABLE_MDBG
ifdefs in the C file.

Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
  • Loading branch information
jenswi-linaro committed Jan 20, 2025
1 parent 82ef6b1 commit 6df4020
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 268 deletions.
Loading

0 comments on commit 6df4020

Please sign in to comment.