From 0586ec48a0aafc208276ec1a6f021724b17708ae Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Fri, 10 Nov 2023 20:26:51 -0500 Subject: [PATCH] Do not populate when mapping Signed-off-by: Moritz Hoffmann --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2120274..645d38f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -462,7 +462,7 @@ impl LocalSizeClass { } } // SAFETY: We only map `file` once, and never share it with other processes. - let mmap = unsafe { memmap2::MmapOptions::new().populate().map_mut(&file)? }; + let mmap = unsafe { memmap2::MmapOptions::new().map_mut(&file)? }; assert_eq!(mmap.len(), byte_len); Ok(mmap) }