microsoft / microsoft/mimalloc
override new/delete
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
Hi, I'm new to mimalloc, I have a few questions after reading the guide.
1. If I want to override both `malloc` and `new/delete`, shall I include the `mimalloc.h`, `mimalloc-override.h` and `mimalloc-new-delete.h` together? Or just `mimalloc-new-delete.h` is enough?
2. Does `mimalloc-new-delete.h` is also applicable for Linux? I see the guide that for Linux, just need the below :
`> env LD_PRELOAD=/usr/lib/libmimalloc.so myprogram`, does this will override the new/delete for Linux?
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
Start by reviewing the guide sections covering mimalloc.h, mimalloc-override.h, mimalloc-new-delete.h, and Linux LD_PRELOAD usage. Clarify whether the headers should be combined and whether LD_PRELOAD overrides new/delete on Linux; the documentation is done when both questions are answered accurately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp
- Domain
- operating-systems
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100