mm: Using Macros Instead of Memory to Fill Labels

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
This commit is contained in:
wangmingrong
2024-03-04 12:17:29 +08:00
committed by Xiang Xiao
parent 737b9c843d
commit d2fd043575
7 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -274,7 +274,7 @@ retry:
}
#ifdef CONFIG_MM_FILL_ALLOCATIONS
memset(blk, 0xaa, pool->blocksize);
memset(blk, MM_ALLOC_MAGIC, pool->blocksize);
#endif
#if CONFIG_MM_BACKTRACE >= 0
@@ -317,7 +317,7 @@ void mempool_free(FAR struct mempool_s *pool, FAR void *blk)
#endif
#ifdef CONFIG_MM_FILL_ALLOCATIONS
memset(blk, 0x55, pool->blocksize);
memset(blk, MM_FREE_MAGIC, pool->blocksize);
#endif
if (pool->interruptsize > blocksize)