Reduce mmap calls in vfprintf.c (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 12 Aug 2016 22:07:46 +0000 (18:07 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 12 Aug 2016 22:07:46 +0000 (18:07 -0400)
commitfd24be983f505f48f549add7e5b64213b4fe50eb
treec19e9e66b982df889833e91307c31edbec2fee71
parent0ae4aef2c28186f85a50c8b4abc671333eba0ab5
Reduce mmap calls in vfprintf.c (XCC)

It turns out that the work_buffer path gets called a lot, including by
bash.  I saw a lot of mmaps in a few traces.  I think we can put that 1k on
the stack, since it's right near the magic number of 1/4 of a minimum
stack size.  We'll see.

This also fixes the other mmap, which should have been asking for
MAP_ANONYMOUS.

Rebuild glibc.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/stdio-common/vfprintf.c