From f57dcd814a1c2ef4d6fdb8b44b2f9bf109cedf6f Mon Sep 17 00:00:00 2001 From: Yuke Peng Date: Fri, 26 Jul 2024 16:25:09 +0800 Subject: [PATCH] Extend user heap limit to 64MB --- kernel/aster-nix/src/process/process_vm/heap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/aster-nix/src/process/process_vm/heap.rs b/kernel/aster-nix/src/process/process_vm/heap.rs index 5a43e2381..34b50d944 100644 --- a/kernel/aster-nix/src/process/process_vm/heap.rs +++ b/kernel/aster-nix/src/process/process_vm/heap.rs @@ -17,7 +17,7 @@ use crate::{ /// The base address of user heap pub const USER_HEAP_BASE: Vaddr = 0x0000_0000_1000_0000; /// The max allowed size of user heap -pub const USER_HEAP_SIZE_LIMIT: usize = PAGE_SIZE * 1000; // 4MB +pub const USER_HEAP_SIZE_LIMIT: usize = 16 * 1024 * PAGE_SIZE; // 16 * 4MB #[derive(Debug)] pub struct Heap {