From 7a412467ac06a2dd9c094e48ecda483c75413ee1 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 27 Jun 2022 18:56:31 +0000 Subject: [PATCH] DebugConsole: reduce heap size to 16KB Now that there's MemoryManager integration for zmodem uploads we no longer need an outsized heap; make it 16KB for now (likely can be smaller). Change-Id: I3b991ef794c0e718934d055e41aef9abc48b1d6b GitOrigin-RevId: 7145b14fca96f59ff76497be29da6b1f447c15b0 --- .../components/DebugConsole/kata-debug-console/src/run.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/system/components/DebugConsole/kata-debug-console/src/run.rs b/apps/system/components/DebugConsole/kata-debug-console/src/run.rs index 6e8ca59..f1dfdf6 100644 --- a/apps/system/components/DebugConsole/kata-debug-console/src/run.rs +++ b/apps/system/components/DebugConsole/kata-debug-console/src/run.rs @@ -22,8 +22,7 @@ static mut CAMKES: Camkes = Camkes::new("DebugConsole"); #[no_mangle] pub unsafe extern "C" fn pre_init() { - // TODO(b/200946906): Review per-component heap allocations, including this one. - const HEAP_SIZE: usize = 1 << 20; + const HEAP_SIZE: usize = 16 * 1024; static mut HEAP_MEMORY: [u8; HEAP_SIZE] = [0; HEAP_SIZE]; CAMKES.pre_init( log::LevelFilter::Debug,