commit | e5d78fe8df9bd61940abcd98ad07ed69b7da4350 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Nov 16 23:59:28 2011 -0500 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Nov 16 23:59:28 2011 -0500 |
tree | 487e681d1f13d0fab839d7a78b944828bed31e61 | |
parent | 4e3df7be8ff430de6f0f124a20112fb7be8a17d0 [diff] |
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.