aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/alloc_mmap/mmap_mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc/alloc_mmap/mmap_mem.h')
-rw-r--r--src/alloc/alloc_mmap/mmap_mem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/alloc/alloc_mmap/mmap_mem.h b/src/alloc/alloc_mmap/mmap_mem.h
index 14caf5db1..890658ebc 100644
--- a/src/alloc/alloc_mmap/mmap_mem.h
+++ b/src/alloc/alloc_mmap/mmap_mem.h
@@ -12,8 +12,11 @@
namespace Botan {
-/*
-* Memory Mapping Allocator
+/**
+* Allocator that uses memory maps backed by disk. We zeroize the map
+* upon deallocation. If swap occurs, the VM will swap to the shared
+* file backing rather than to a swap device, which means we know where
+* it is and can zap it later.
*/
class MemoryMapping_Allocator : public Pooling_Allocator
{