mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 15:59:32 +03:00
Merge branch 'dev' into dev3
This commit is contained in:
commit
1568cb43f8
1 changed files with 17 additions and 0 deletions
|
@ -25,6 +25,23 @@ There are four requirements to make the overriding work well:
|
||||||
list of the final executable (so it can intercept all potential allocations).
|
list of the final executable (so it can intercept all potential allocations).
|
||||||
You can use `minject -l <exe>` to check this if needed.
|
You can use `minject -l <exe>` to check this if needed.
|
||||||
|
|
||||||
|
```cpp
|
||||||
|
┌──────────────┐
|
||||||
|
│ Your Program │
|
||||||
|
└────┬─────────┘
|
||||||
|
│
|
||||||
|
│ mi_version() ┌───────────────┐ ┌───────────────────────┐
|
||||||
|
├──────────────►│ mimalloc.dll ├────►│ mimalloc-redirect.dll │
|
||||||
|
│ └──────┬────────┘ └───────────────────────┘
|
||||||
|
│ ▼
|
||||||
|
│ malloc() etc. ┌──────────────┐
|
||||||
|
├──────────────►│ ucrtbase.dll │
|
||||||
|
│ └──────────────┘
|
||||||
|
│
|
||||||
|
│
|
||||||
|
└──────────────► ...
|
||||||
|
```
|
||||||
|
|
||||||
For best performance on Windows with C++, it
|
For best performance on Windows with C++, it
|
||||||
is also recommended to also override the `new`/`delete` operations (by including
|
is also recommended to also override the `new`/`delete` operations (by including
|
||||||
[`mimalloc-new-delete.h`](../include/mimalloc-new-delete.h)
|
[`mimalloc-new-delete.h`](../include/mimalloc-new-delete.h)
|
||||||
|
|
Loading…
Add table
Reference in a new issue