mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Extend user heap limit to 64MB
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
cf1a488132
commit
f57dcd814a
@ -17,7 +17,7 @@ use crate::{
|
|||||||
/// The base address of user heap
|
/// The base address of user heap
|
||||||
pub const USER_HEAP_BASE: Vaddr = 0x0000_0000_1000_0000;
|
pub const USER_HEAP_BASE: Vaddr = 0x0000_0000_1000_0000;
|
||||||
/// The max allowed size of user heap
|
/// 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)]
|
#[derive(Debug)]
|
||||||
pub struct Heap {
|
pub struct Heap {
|
||||||
|
Reference in New Issue
Block a user