When resorting to paged structures you are will use all memory and more.
That is too large to get in a coredump, so ignore it.
@@ -62,10 +62,11 @@ MmapFileAllocator::alloc(size_t sz) const
assert(ins_res.second);
int retval = madvise(buf, sz, MADV_RANDOM);
assert(retval == 0);
+ retval = madvise(buf, sz, MADV_DONTDUMP);
+ assert(retval == 0);
return PtrAndSize(buf, sz);
}
-
void
MmapFileAllocator::free(PtrAndSize alloc) const
{
