microsoft / microsoft/mimalloc

override new/delete

Open
#604 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.