microsoft / microsoft/mimalloc
new/delete operator macro hooks
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
Some loose idea.
We have this new-delete include file that implements all possible functions. Would be cool to add some macros inside, that by default would map to nothing but allow to define them before including header and hook calls to Tracy for example ( TracyAlloc(ptr, size) TracyFree(ptr) etc ).
This way users would not need to write custom new/delete overrides and updating Mimalloc will not override any such custom modyficatjons in this file.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the new-delete include file and review the functions it implements and the existing customization behavior. Clarify which allocation and deallocation hooks are needed, how they are defined before inclusion, and how no-op defaults should behave; done would include coverage for a Tracy-style integration without requiring custom new/delete overrides.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100