]> sourceware.org Git - newlib-cygwin.git/commit
Don't allocate another header when merging chunks
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Tue, 30 Aug 2022 13:56:26 +0000 (15:56 +0200)
committerJeff Johnston <jjohnstn@redhat.com>
Thu, 1 Sep 2022 19:39:10 +0000 (15:39 -0400)
commita68e99f8839e4697790077c8a77b506d528cc674
treebd0b3c881e63248a696a8a6749e8ebb6322433b8
parent0455ea28ce2bfa83ca36ec37b9c9fb00c54bbe54
Don't allocate another header when merging chunks

In the nano version of malloc, when the last chunk is to be extended,
there is no need to acount for the header again as it's already taken
into account in the overall "alloc_size" at the beginning of the
function.

Contributed by STMicroelectronics

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
newlib/libc/stdlib/nano-mallocr.c
This page took 0.02985 seconds and 5 git commands to generate.