Add disable_initial_exec_tls description

This commit is contained in:
Joel Höner 2019-03-20 00:20:39 +01:00 committed by gnzlbg
parent ea444b8758
commit ff19eebf75
1 changed files with 8 additions and 0 deletions

View File

@ -76,6 +76,14 @@ This crate provides following cargo feature flags:
libc. This usually causes C and C++ code linked in the same program to use libc. This usually causes C and C++ code linked in the same program to use
`jemalloc` as well. On some platforms prefixes are always used because `jemalloc` as well. On some platforms prefixes are always used because
unprefixing is known to cause segfaults due to allocator mismatches. unprefixing is known to cause segfaults due to allocator mismatches.
* `disable_initial_exec_tls` (disabled by default): when enabled, jemalloc is
built with the `--disable-initial-exec-tls` option. It disables 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 startup (e.g. using dlopen). If you encounter
the error `yourlib.so: cannot allocate memory in static TLS block`, you'll
likely want to enable this.
### Environment variables ### Environment variables