Skip to content
Commit 63a20eb0 authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

malloc: Use branches instead of mtag_granule_mask



The branches may be better optimized since mtag_enabled is widely used.

Granule size larger than a chunk header is not supported since then we
cannot have both the chunk header and user area granule aligned.  To
fix that for targets with large granule, the chunk layout has to change.

So code that attempted to handle the granule mask generally was changed.
This simplified CHUNK_AVAILABLE_SIZE and the logic in malloc_usable_size.

Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
parent 9d61722b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment