From e15557ab993635f2133759a1f8d182562eb29721 Mon Sep 17 00:00:00 2001 From: Francesco_Cina Date: Fri, 26 Jan 2024 15:02:01 +0100 Subject: [PATCH] reduce reserved lenght of memory mapped files in 32 bits --- ic-stable-structures/src/memory_mapped_files/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ic-stable-structures/src/memory_mapped_files/memory.rs b/ic-stable-structures/src/memory_mapped_files/memory.rs index 8390bfe1..3fc1faf4 100644 --- a/ic-stable-structures/src/memory_mapped_files/memory.rs +++ b/ic-stable-structures/src/memory_mapped_files/memory.rs @@ -18,7 +18,7 @@ const WASM_PAGE_SIZE_IN_BYTES: u64 = 65536; #[cfg(not(target_pointer_width = "32"))] const DEFAULT_MEM_MAP_RESERVED_LENGTH: usize = 1 << 40; // 1 TB #[cfg(target_pointer_width = "32")] -const DEFAULT_MEM_MAP_RESERVED_LENGTH: usize = 1 << 28; // 256 MB +const DEFAULT_MEM_MAP_RESERVED_LENGTH: usize = 1 << 20; // 1 MB /// Memory manager that uses one memory mapped filer per one memory id. pub struct MemoryMappedFileMemoryManager {