summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-08-24 17:01:17 +0200
committerTor Egge <Tor.Egge@online.no>2023-08-24 17:01:17 +0200
commit2e81c67191513a2642579cb3ef2143c91d51e9af (patch)
tree7982799258869be167b01309e18e099411bff3bd /vespalib
parent63c4469acfef92b9a6ec40593eeef5726afc72ed (diff)
Extend class comment.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/mmap_file_allocator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h b/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h
index 54bdccf01e8..c79dc8682ba 100644
--- a/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h
+++ b/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h
@@ -16,6 +16,9 @@ namespace vespalib::alloc {
* Class handling memory allocations backed by one or more files.
* Not reentrant or thread safe. Should not be destructed before all allocations
* have been freed.
+ *
+ * Memory allocations smaller than _small_limit use portions of
+ * premmapped areas to reduce the total number of memory mappings.
*/
class MmapFileAllocator : public MemoryAllocator {
struct SizeAndOffset {