summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-04 12:56:50 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-01-04 12:56:50 +0000
commit6ff9771ac01d5f31489a135a960a295269ff348b (patch)
tree8248751fda6df43f57b8190ebe5a3c0432982123 /vespalib
parent261a7682dfef5645431abdc6f458499368ab0f7a (diff)
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.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/mmap_file_allocator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/mmap_file_allocator.cpp b/vespalib/src/vespa/vespalib/util/mmap_file_allocator.cpp
index 49560c1b3b0..6dd2a853e51 100644
--- a/vespalib/src/vespa/vespalib/util/mmap_file_allocator.cpp
+++ b/vespalib/src/vespa/vespalib/util/mmap_file_allocator.cpp
@@ -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
{