Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dlmalloc: account the footprint of the initial heap
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.
- Loading branch information