]> sourceware.org Git - glibc.git/commit
malloc: Use memsize instead of CHUNK_AVAILABLE_SIZE
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 8 Mar 2021 12:59:05 +0000 (12:59 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 19 Mar 2021 11:46:21 +0000 (11:46 +0000)
commit4af59f688a0c79487187441c3257466037164221
tree744c43c0c5461112722d8ad84c4d623ccc427138
parent601c47c4765e4b8cf921a719cf1d38da3eb97aa2
malloc: Use memsize instead of CHUNK_AVAILABLE_SIZE

This is a pure refactoring change that does not affect behaviour.

The CHUNK_AVAILABLE_SIZE name was unclear, the memsize name tries to
follow the existing convention of mem denoting the allocation that is
handed out to the user, while chunk is its internally used container.

The user owned memory for a given chunk starts at chunk2mem(p) and
the size is memsize(p).  It is not valid to use on dumped heap chunks.

Moved the definition next to other chunk and mem related macros.
malloc/hooks.c
malloc/malloc.c
This page took 0.040745 seconds and 5 git commands to generate.