Commit a3ef152
authored
dlmalloc: account the footprint of the initial heap (#496)
While malloc_stats and friends are disabled and unused for wasi-libc,
it's neater to be consistent.
Background: My colleagues for some reasons enabled malloc_stats
and asked me why it reports negative values.
Note: Depending __heap_base, init_top() adjusts the address for
alignment. I think the amount of this adjustment is reported as
"used" by malloc_stats. I don't bother to "fix" it.1 parent 2f088a9 commit a3ef152
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5250 | 5250 | | |
5251 | 5251 | | |
5252 | 5252 | | |
| 5253 | + | |
| 5254 | + | |
5253 | 5255 | | |
5254 | 5256 | | |
5255 | 5257 | | |
| |||
0 commit comments