diff options
| author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-04-12 11:40:08 -0300 |
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-04-13 08:22:59 -0300 |
| commit | 8a1a9b9558d6f3e28cc97254c1bacfbc823d05e2 (patch) | |
| tree | 89ef647267ef31794eeb2f297886e6bde97dcf10 /config | |
| parent | 34c48aaf123ffd8aec31b79f0b4d16d9a63fe59b (diff) | |
| download | rneovim-8a1a9b9558d6f3e28cc97254c1bacfbc823d05e2.tar.gz rneovim-8a1a9b9558d6f3e28cc97254c1bacfbc823d05e2.tar.bz2 rneovim-8a1a9b9558d6f3e28cc97254c1bacfbc823d05e2.zip | |
deps: Add jemalloc as an optional dependency
Jemalloc will be used if the cmake option `USE_JEMALLOC` is enabled(which is the
default). To avoid trouble with clang's ASAN, it is disabled by default if the
`SANITIZE` option is enabled.
Since jemalloc has thread cache for small objects, it fills the gap created by
removing klib memory pools.
The `xstrdup` funciton(memory.c) had to be reimplemented on top of `xmalloc` to
make it work with a custom allocator.
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/config.h.in b/config/config.h.in index 382b5c653d..04db12fbe3 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -65,5 +65,6 @@ #define FEAT_BROWSE #define FEAT_CSCOPE #define FEAT_MOUSE +#cmakedefine USE_JEMALLOC #endif // AUTO_CONFIG_H |