You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ to link with the static library. See `test\CMakeLists.txt` for an example.
253
253
254
254
For best performance in C++ programs, it is also recommended to override the
255
255
global `new` and `delete` operators. For convenience, mimalloc provides
256
-
[`mimalloc-new-delete.h`](https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-new-delete.h) which does this for you -- just include it in a single(!) source file in your project.
256
+
[`mimalloc-new-delete.h`](include/mimalloc-new-delete.h) which does this for you -- just include it in a single(!) source file in your project.
257
257
In C++, mimalloc also provides the `mi_stl_allocator` struct which implements the `std::allocator`
258
258
interface.
259
259
@@ -458,7 +458,7 @@ There are four requirements to make the overriding work well:
458
458
459
459
For best performance on Windows with C++, it
460
460
is also recommended to also override the `new`/`delete` operations (by including
The environment variable `MIMALLOC_DISABLE_REDIRECT=1` can be used to disable dynamic
@@ -487,7 +487,7 @@ object file. For example:
487
487
Another way to override statically that works on all platforms, is to
488
488
link statically to mimalloc (as shown in the introduction) and include a
489
489
header file in each source file that re-defines `malloc` etc. to `mi_malloc`.
490
-
This is provided by [`mimalloc-override.h`](https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-override.h). This only works reliably though if all sources are
490
+
This is provided by [`mimalloc-override.h`](include/mimalloc-override.h). This only works reliably though if all sources are
491
491
under your control or otherwise mixing of pointers from different heaps may occur!
0 commit comments