Skip to content
Commit 71ca6530 authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

mempool: Fix bit pointer state for N_MAX > 31



When a mempool is created with a large number of maximum-size blocks,
the logic for initializing max_inline_level (i.e. when to union the
bitmask with the pointer and when to use the pointer directly) was
wrong.  The default state was "zero", which implies that level 0
should be inlined, but that's wrong with >32 base blocks.
Additionally, the type was unsigned, making the "level zero is a
pointer" situation impossible to represent.

Fixes #6727

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent b92436a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment