We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f7f5d commit 815fce4Copy full SHA for 815fce4
examples/track_usage.rs
@@ -38,13 +38,12 @@ fn main() -> ! {
38
39
drop(alloc_vecs);
40
41
- defmt::warn!(
+ defmt::info!(
42
"{} of {} heap memory are allocated after drop",
43
HEAP_SIZE - HEAP.free(),
44
HEAP_SIZE
45
);
46
47
- // Panic is expected here.
48
semihosting::process::exit(0);
49
}
50
src/tlsf.rs
@@ -115,6 +115,8 @@ impl Heap {
115
if !inner_mut.initialized {
116
return 0;
117
118
+ // Safety: We pass the memory block we previously initialized the heap with
119
+ // to the `iter_blocks` method.
120
unsafe {
121
inner_mut
122
.tlsf
0 commit comments