From: Rich Felker Date: Thu, 17 Nov 2011 04:59:28 +0000 (-0500) Subject: fix issue with excessive mremap syscalls on realloc X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=inline;h=e5d78fe8df9bd61940abcd98ad07ed69b7da4350;hp=e5d78fe8df9bd61940abcd98ad07ed69b7da4350;p=musl 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. ---