Skip to content

Consider in-place realloc in memory usage statistics#4995

Open
GilesLeinad wants to merge 3 commits into
bytecodealliance:mainfrom
GilesLeinad:consider-in-place-realloc-in-memusage
Open

Consider in-place realloc in memory usage statistics#4995
GilesLeinad wants to merge 3 commits into
bytecodealliance:mainfrom
GilesLeinad:consider-in-place-realloc-in-memusage

Conversation

@GilesLeinad

@GilesLeinad GilesLeinad commented Jul 14, 2026

Copy link
Copy Markdown

The memory usage statistics, which can be retrieved via the function mem_allocator_get_alloc_info, do not consider in-place reallocations. The grow of the memory usage is only considered if a reallocation request is satisfied by a malloc, copy and free sequence. But it is not considered if the reallocation happens by extending the current node.

@GilesLeinad GilesLeinad changed the title Consider in-place realloc in memusage Consider in-place realloc in memory usage statistics Jul 14, 2026
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.

1 participant