Skip to content

Fix used memory estimation #127

Merged
hannesm merged 2 commits intomirage:mainfrom
palainp:dlmalloc
Nov 15, 2023
Merged

Fix used memory estimation #127
hannesm merged 2 commits intomirage:mainfrom
palainp:dlmalloc

Conversation

@palainp
Copy link
Member

@palainp palainp commented Nov 15, 2023

This PR fix #126 . An incorrect memory usage tracing was in use before, which might lose some bytes when a realloc call comes.

@palainp palainp changed the title Dlmalloc Fix used memory estimation Nov 15, 2023
@hannesm hannesm merged commit 01c6a67 into mirage:main Nov 15, 2023
@palainp palainp deleted the dlmalloc branch November 15, 2023 20:50
hannesm added a commit to hannesm/opam-repository that referenced this pull request Nov 15, 2023
* malloc: fix the memory allocation tracking to be precise (fixes mirage/ocaml-solo5#126 reported by @hannesm, mirage/ocaml-solo5#127 @palainp)
@hannesm
Copy link
Member

hannesm commented Nov 15, 2023

thanks a lot for your investigations, quick reply, and prompt fix :)

nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
* malloc: fix the memory allocation tracking to be precise (fixes mirage/ocaml-solo5#126 reported by @hannesm, mirage/ocaml-solo5#127 @palainp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On hvt, I sometimes get a negative reading from malloc_memory_usage

2 participants