Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/microsoft/mimalloc into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Dec 30, 2024
2 parents 2d94df8 + aa6f203 commit 02efc57
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,13 @@ you also need to tell `valgrind` to not intercept those calls itself, and use:

By setting the `MIMALLOC_SHOW_STATS` environment variable you can check that mimalloc is indeed
used and not the standard allocator. Even though the [Valgrind option][valgrind-soname]
is called `--soname-synonyms`, this also
works when overriding with a static library or object file. Unfortunately, it is not possible to
dynamically override mimalloc using `LD_PRELOAD` together with `valgrind`.
is called `--soname-synonyms`, this also works when overriding with a static library or object file.
To dynamically override mimalloc using `LD_PRELOAD` together with `valgrind`, use:

```
> valgrind --trace-children=yes --soname-synonyms=somalloc=*mimalloc* /usr/bin/env LD_PRELOAD=/usr/lib/libmimalloc.so -- <myprogram>
```

See also the `test/test-wrong.c` file to test with `valgrind`.

Valgrind support is in its initial development -- please report any issues.
Expand Down

0 comments on commit 02efc57

Please sign in to comment.