Skip to content

Commit 2bc5255

Browse files
committed
add figure to readme for mimalloc-redirect
1 parent 4a14c69 commit 2bc5255

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bin/readme.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@ There are four requirements to make the overriding work well:
2525
list of the final executable (so it can intercept all potential allocations).
2626
You can use `minject -l <exe>` to check this if needed.
2727

28+
```cpp
29+
┌──────────────┐
30+
│ Your Program │
31+
└────┬─────────┘
32+
33+
│ mi_version() ┌───────────────┐ ┌───────────────────────┐
34+
├──────────────►│ mimalloc.dll ├────►│ mimalloc-redirect.dll │
35+
│ └──────┬────────┘ └───────────────────────┘
36+
│ ▼
37+
│ malloc() etc. ┌──────────────┐
38+
├──────────────►│ ucrtbase.dll │
39+
│ └──────────────┘
40+
41+
42+
└──────────────► ...
43+
```
44+
2845
For best performance on Windows with C++, it
2946
is also recommended to also override the `new`/`delete` operations (by including
3047
[`mimalloc-new-delete.h`](../include/mimalloc-new-delete.h)

0 commit comments

Comments
 (0)