mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
memepool:fix memory consumption double counting issue
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -405,11 +405,6 @@ int mempool_info_task(FAR struct mempool_s *pool,
|
||||
|
||||
info->aordblks += count;
|
||||
info->uordblks += count * pool->blocksize;
|
||||
if (pool->calibrate)
|
||||
{
|
||||
info->aordblks -= pool->nexpend;
|
||||
info->uordblks -= pool->totalsize;
|
||||
}
|
||||
}
|
||||
else if (info->pid == MM_BACKTRACE_ALLOC_PID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user