Skip to content
Commit 1a8a8d90 authored by Johan Hedberg's avatar Johan Hedberg Committed by Anas Nashif
Browse files

mempool: Don't store redundant information for k_malloc/k_free



We don't need to store the full k_mem_block, rather just the
k_mem_block_id. In effect, this saves 4 bytes of memory per allocated
memory chunk. Also take advantage of the newly introduced
k_mem_pool_free_id API here.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 7d887cb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment