]> sourceware.org Git - glibc.git/commit
malloc: Use branches instead of mtag_granule_mask
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 8 Feb 2021 12:39:01 +0000 (12:39 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 19 Mar 2021 11:46:20 +0000 (11:46 +0000)
commitdb0edd3cb8ba74b3b904122f643b4f5b021ee5a3
tree0c222651e413302617c81070c17f997f3418b7ae
parent15d1d073d1595202b2be48a3788af5b315602ece
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: DJ Delorie <dj@redhat.com>
malloc/arena.c
malloc/malloc.c
This page took 0.041111 seconds and 5 git commands to generate.