diff options
author | Jason Evans <jasone@canonware.com> | 2012-03-24 00:40:58 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2012-03-24 00:40:58 (GMT) |
commit | fd4fcefa004e04ea8672b11e280a6ced16c38dd2 (patch) | |
tree | 62949417df21648503e8fa24463f30c779b79429 | |
parent | 2465bdf4937ffba309e7289014443c6b51566f22 (diff) | |
download | jemalloc-fd4fcefa004e04ea8672b11e280a6ced16c38dd2.zip jemalloc-fd4fcefa004e04ea8672b11e280a6ced16c38dd2.tar.gz jemalloc-fd4fcefa004e04ea8672b11e280a6ced16c38dd2.tar.bz2 |
Force the lazy-lock feature on FreeBSD.
Force the lazy-lock feature on FreeBSD in order to avoid pthread_self(),
because it causes allocation. (This change was mistakenly omitted from
41b6afb834b1f5250223678c52bd4f013d4234f6.)
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5999a33..2616b0a 100644 --- a/configure.ac +++ b/configure.ac @@ -221,6 +221,7 @@ case "${host}" in abi="elf" AC_DEFINE([JEMALLOC_PURGE_MADVISE_FREE], [ ]) RPATH="-Wl,-rpath," + force_lazy_lock="1" ;; *-*-linux*) CFLAGS="$CFLAGS" @@ -800,6 +801,10 @@ fi ], [enable_lazy_lock="0"] ) +if test "x$enable_lazy_lock" = "x0" -a "x${force_lazy_lock}" = "x1" ; then + AC_MSG_RESULT([Forcing lazy-lock to avoid allocator/threading bootstrap issues]) + enable_lazy_lock="1" +fi if test "x$enable_lazy_lock" = "x1" ; then AC_CHECK_HEADERS([dlfcn.h], , [AC_MSG_ERROR([dlfcn.h is missing])]) AC_CHECK_FUNC([dlsym], [], |