[PATCH 04/16] malloc: Simplify __mtag_tag_new_usable
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri Mar 5 12:24:44 GMT 2021
The 03/04/2021 19:20, DJ Delorie wrote:
> Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
> > The chunk cannot be a dumped one here.
>
> What about the realloc-expand case in malloc.c:4819 ?
that's in _int_realloc and it seems _int_realloc
is never called on dumped chunks (nor mmapped
chunks in more general)
(there is some inconsistency here about what
kind of chunks may end up in _int_realloc vs
_int_free, e.g. the former may be tagged and
never mmapped, the latter is always untagged
but may be mmapped, but neither can be dumped.
these constraints are currently not documented)
More information about the Libc-alpha
mailing list