File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,23 @@ There are four requirements to make the overriding work well:
25
25
list of the final executable (so it can intercept all potential allocations).
26
26
You can use ` minject -l <exe> ` to check this if needed.
27
27
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
+
28
45
For best performance on Windows with C++, it
29
46
is also recommended to also override the ` new ` /` delete ` operations (by including
30
47
[ ` mimalloc-new-delete.h ` ] ( ../include/mimalloc-new-delete.h )
You can’t perform that action at this time.
0 commit comments