summaryrefslogtreecommitdiffstats
path: root/jemalloc/INSTALL
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2010-10-24 01:37:06 (GMT)
committerJason Evans <jasone@canonware.com>2010-10-24 01:37:06 (GMT)
commite73397062ac3ab28a9d377591b63ed19fd154cca (patch)
treed78dbc832be4e8c8b504017bc15f0256f91e033d /jemalloc/INSTALL
parente4f7846f1fd279a039ffa2a41707348187219de4 (diff)
downloadjemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.zip
jemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.tar.gz
jemalloc-e73397062ac3ab28a9d377591b63ed19fd154cca.tar.bz2
Replace JEMALLOC_OPTIONS with MALLOC_CONF.
Replace the single-character run-time flags with key/value pairs, which can be set via the malloc_conf global, /etc/malloc.conf, and the MALLOC_CONF environment variable. Replace the JEMALLOC_PROF_PREFIX environment variable with the "opt.prof_prefix" option. Replace umax2s() with u2s().
Diffstat (limited to 'jemalloc/INSTALL')
-rw-r--r--jemalloc/INSTALL14
1 files changed, 11 insertions, 3 deletions
diff --git a/jemalloc/INSTALL b/jemalloc/INSTALL
index 1bf5158..c5697c6 100644
--- a/jemalloc/INSTALL
+++ b/jemalloc/INSTALL
@@ -27,9 +27,17 @@ any of the following arguments (not a definitive list) to 'configure':
it is linked to. This works only on ELF-based systems.
--with-jemalloc-prefix=<prefix>
- Prefix all public APIs with <prefix>, so that, for example, malloc()
- becomes <prefix>malloc(). This makes it possible to use jemalloc at the
- same time as the system allocator.
+ Prefix all public APIs with <prefix>. For example, if <prefix> is
+ "prefix_", the API changes like the following occur:
+
+ malloc() --> prefix_malloc()
+ malloc_conf --> prefix_malloc_conf
+ /etc/malloc.conf --> /etc/prefix_malloc.conf
+ MALLOC_CONF --> PREFIX_MALLOC_CONF
+
+ This makes it possible to use jemalloc at the same time as the
+ system allocator, or even to use multiple copies of jemalloc
+ simultaneously.
By default, the prefix is "", except on OS X, where it is "je_". On OS X,
jemalloc overlays the default malloc zone, but makes no attempt to actually