зеркало из https://github.com/mozilla/gecko-dev.git
fda40761ff
When recycling chunks, mozjemalloc tries to avoid keeping around more than 128MB worth of chunks around, but it doesn't actually look at the size of the chunks that are recycled, so if chunk larger than 128MB is recycled, it is kept as a whole, going well over the limit. The chunks are still properly reused, and further recycling doesn't occur, but that can limit other mmap users from getting enough address space. With this change, mozjemalloc now doesn't keep more than 128MB, by splitting the chunks it recycles if they are too large. Note this was not a problem on Windows, where chunks larger than 1MB are never recycled (per CAN_RECYCLE). --HG-- extra : rebase_source : 6765fd30b78ca5ddc7d55aac861355d960e47828 |
||
---|---|---|
.. | ||
build | ||
fallible | ||
gtest | ||
mozalloc | ||
mozjemalloc | ||
replace | ||
volatile | ||
moz.build |