Skip to content

RFC: Move malloc_normal, malloc_huge tracking into alloc, free functions - #1424

Open
Frank Richter (res2k) wants to merge 1 commit into
microsoft:dev3from
res2k:try-theap-more-accurate-allocations
Open

Frank Richter (res2k) wants to merge 1 commit into
microsoft:dev3from
res2k:try-theap-more-accurate-allocations

Conversation

@res2k

Copy link
Copy Markdown
Contributor

Attempt to make malloc_normal, malloc_huge more accurate/up-to-date by moving their tracking to the alloc/free functions for MI_STATS==2, similar to how malloc_requested is handled.

I've marked this as an "RFC" b/c I'd like to have the more timely stats, but I'd like some feedback on this approach:

  • Is the general idea sound?
  • I'm not sure what to do with mi_free_block_mt().
  • ...or whether I've missed other code paths.

(Besides, I shameless copypasted mi_theap_of_page(), which should be done differently in a proper change.)

@res2k
Frank Richter (res2k) force-pushed the try-theap-more-accurate-allocations branch from 07ac75e to 502e428 Compare October 4, 2026 14:53

This branch has not been deployed

No deployments
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