gecko-dev/memory
Mike Hommey fda40761ff Bug 1388935 - Avoid overflowing the chunk recycling limit with very large chunks. r=njn
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
2017-08-10 09:22:55 +09:00
..
build Bug 1382099 - Remove MOZ_WIDGET_GONK from memory/. r=glandium. 2017-07-19 18:39:00 +10:00
fallible Bug 1290645 - Remove VS2013 workarounds in memory/. r=glandium 2016-07-28 11:46:30 -07:00
gtest Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn 2016-11-09 10:24:22 -08:00
mozalloc Bug 1383919 - Use |noexcept| instead of an exception-specification in mozalloc.h. r=glandium 2017-07-24 19:19:07 -04:00
mozjemalloc Bug 1388935 - Avoid overflowing the chunk recycling limit with very large chunks. r=njn 2017-08-10 09:22:55 +09:00
replace Bug 1387940 - Make --max-frames=8 the default for dmd.py. r=mccr8. 2017-08-07 14:56:15 +10:00
volatile Bug 1382099 - Remove MOZ_WIDGET_GONK from memory/. r=glandium. 2017-07-19 18:39:00 +10:00
moz.build Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00