aboutsummaryrefslogtreecommitdiff
path: root/src/linux/reboot.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-11-16 23:59:28 -0500
committerRich Felker <dalias@aerifal.cx>2011-11-16 23:59:28 -0500
commite5d78fe8df9bd61940abcd98ad07ed69b7da4350 (patch)
tree487e681d1f13d0fab839d7a78b944828bed31e61 /src/linux/reboot.c
parentfix __cplusplus extern "C" closing brace in pty.h (typo?) (diff)
downloadgrovel-e5d78fe8df9bd61940abcd98ad07ed69b7da4350.tar.gz
grovel-e5d78fe8df9bd61940abcd98ad07ed69b7da4350.tar.xz
fix issue with excessive mremap syscalls on realloc
CHUNK_SIZE macro was defined incorrectly and shaving off at least one significant bit in the size of mmapped chunks, resulting in the test for oldlen==newlen always failing and incurring a syscall. fortunately i don't think this issue caused any other observable behavior; the definition worked correctly for all non-mmapped chunks where its correctness matters more, since their lengths are always multiples of the alignment.
Diffstat (limited to 'src/linux/reboot.c')
0 files changed, 0 insertions, 0 deletions