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]>
Reviewed-by: Etienne Carriere <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Jan 22, 2025
1 parent 4645216 commit 695be9d
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 271 deletions.
Loading

0 comments on commit 695be9d

Please sign in to comment.