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
This commit is contained in:
Sam Leffler 2022-06-27 18:56:31 +00:00
parent f28da794b2
commit 7a412467ac

View File

@ -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,