mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-08-17 12:46:59 +00:00
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:
parent
f28da794b2
commit
7a412467ac
@ -22,8 +22,7 @@ static mut CAMKES: Camkes = Camkes::new("DebugConsole");
|
|||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn pre_init() {
|
pub unsafe extern "C" fn pre_init() {
|
||||||
// TODO(b/200946906): Review per-component heap allocations, including this one.
|
const HEAP_SIZE: usize = 16 * 1024;
|
||||||
const HEAP_SIZE: usize = 1 << 20;
|
|
||||||
static mut HEAP_MEMORY: [u8; HEAP_SIZE] = [0; HEAP_SIZE];
|
static mut HEAP_MEMORY: [u8; HEAP_SIZE] = [0; HEAP_SIZE];
|
||||||
CAMKES.pre_init(
|
CAMKES.pre_init(
|
||||||
log::LevelFilter::Debug,
|
log::LevelFilter::Debug,
|
||||||
|
Loading…
Reference in New Issue
Block a user