From 17dd2dcd6f8a560ef6a25fa6c72859d758136b81 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 10 Mar 2020 17:32:01 +0800 Subject: [PATCH] shell: increase dummy allocations In order to test dummy allocations, increase these sizes. Note that this also causes an error in release mode. Signed-off-by: Sean Cross --- examples/shell/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/shell/src/main.rs b/examples/shell/src/main.rs index 8facec0e5..084393f13 100644 --- a/examples/shell/src/main.rs +++ b/examples/shell/src/main.rs @@ -54,12 +54,12 @@ fn main() { println!("Allocating a ton of space on the stack..."); { - let _big_array = [42u8; 16384]; + let _big_array = [42u8; 131072]; } - println!("Increasing heap to 32768..."); + println!("Increasing heap to 131072..."); let heap = xous::rsyscall(xous::SysCall::IncreaseHeap( - 32768, + 131072, xous::MemoryFlags::R | xous::MemoryFlags::W, )) .expect("couldn't increase heap");