avoid over-allocation of brk on first malloc
authorRich Felker <dalias@aerifal.cx>
Sat, 2 Apr 2011 03:07:03 +0000 (23:07 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 2 Apr 2011 03:07:03 +0000 (23:07 -0400)
commitbf8785825ac57371c268f54866923d6f89231639
treee4df93ab7d90452da3bf170689acb930ce29e057
parent952987a0cb9b1973fdf23e05f8ddc6fe3c98fd68
avoid over-allocation of brk on first malloc

if init_malloc returns positive (successful first init), malloc will
retry getting a chunk from the free bins rather than expanding the
heap again. also pass init_malloc a hint for the size of the initial
allocation.
src/malloc/malloc.c