aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL.md
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2018-04-17 12:52:22 -0700
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2018-04-17 19:22:01 -0700
commita62e42baebe09dc84aaff731faa6ff87fde6bc4e (patch)
tree4b5f2e297f94b95dc006add9b1d01b4753325ae5 /INSTALL.md
parente40b2f75bdfc830a9a53b2cad4fb7261d39cec93 (diff)
downloadplatform_external_jemalloc_new-a62e42baebe09dc84aaff731faa6ff87fde6bc4e.tar.gz
platform_external_jemalloc_new-a62e42baebe09dc84aaff731faa6ff87fde6bc4e.tar.bz2
platform_external_jemalloc_new-a62e42baebe09dc84aaff731faa6ff87fde6bc4e.zip
Add the --disable-initial-exec-tls configure option.
Right now we always make our TLS use the initial-exec model if the compiler supports it. This change allows configure-time disabling of this setting, which can be helpful when dynamically loading jemalloc is the only option.
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
index dff7cebb..082310f2 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -265,6 +265,15 @@ any of the following arguments (not a definitive list) to 'configure':
configuration, jemalloc will provide additional size classes that are not
16-byte-aligned (24, 40, and 56).
+* `--disable-initial-exec-tls`
+
+ Disable the initial-exec TLS model for jemalloc's internal thread-local
+ storage (on those platforms that support explicit settings). This can allow
+ jemalloc to be dynamically loaded after program starup (e.g. using dlopen).
+ Note that in this case, there will be two malloc implementations operating
+ in the same process, which will almost certainly result in confusing runtime
+ crashes if pointers leak from one implementation to the other.
+
The following environment variables (not a definitive list) impact configure's
behavior: